Browse Source

Fix so 401 error is returned only on failed logon requests (#7010)

pull/7051/head
Aleksander Machniak 6 years ago
parent
commit
ee1f01a0df
  1. 1
      CHANGELOG
  2. 3
      index.php

1
CHANGELOG

@ -6,6 +6,7 @@ CHANGELOG Roundcube Webmail
- Fix PHP warning: "array_merge(): Expected parameter 2 to be an array, null given in sendmail.inc (#7003) - Fix PHP warning: "array_merge(): Expected parameter 2 to be an array, null given in sendmail.inc (#7003)
- Fix bug where cache keys could exceed length limit specified in db schema (#7004) - Fix bug where cache keys could exceed length limit specified in db schema (#7004)
- Fix invalid Signature button state after escaping Mailvelope mode (#7015) - Fix invalid Signature button state after escaping Mailvelope mode (#7015)
- Fix so 401 error is returned only on failed logon requests (#7010)
RELEASE 1.4.0 RELEASE 1.4.0
------------- -------------

3
index.php

@ -234,7 +234,8 @@ if (empty($RCMAIL->user->ID)) {
$plugin = $RCMAIL->plugins->exec_hook('unauthenticated', array( $plugin = $RCMAIL->plugins->exec_hook('unauthenticated', array(
'task' => 'login', 'task' => 'login',
'error' => $session_error, 'error' => $session_error,
'http_code' => !$session_error ? 401 : 200
// Return 401 only on failed logins (#7010)
'http_code' => empty($session_error) && !empty($error_message) ? 401 : 200
)); ));
$RCMAIL->set_task($plugin['task']); $RCMAIL->set_task($plugin['task']);

Loading…
Cancel
Save