Skip to content

Commit

Permalink
Return "401 Unauthorized" status when login fails (#5663)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Jun 26, 2017
1 parent 6dee73a commit 2cb9de3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================

- Return "401 Unauthorized" status when login fails (#5663)
- Support both comma and semicolon as recipient separator, drop recipients_separator option (#5092)
- Plugin API: Added 'show_bytes' hook (#5001)
- subscriptions_option: show \\Noselect folders greyed out (#5621)
Expand Down
4 changes: 4 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@

$RCMAIL->set_task($plugin['task']);

if (!$session_error) {
header('HTTP/1.0 401 Unauthorized');
}

$OUTPUT->send($plugin['task']);
}
else {
Expand Down

0 comments on commit 2cb9de3

Please sign in to comment.