Commit 44c7af37 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1329 Revert IBackend->Logon() change.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 04e7c3a1
...@@ -226,7 +226,7 @@ class ZPushAutodiscover { ...@@ -226,7 +226,7 @@ class ZPushAutodiscover {
// charset was sent by the client and convert it to UTF-8. See https://jira.z-hub.io/browse/ZP-864. // charset was sent by the client and convert it to UTF-8. See https://jira.z-hub.io/browse/ZP-864.
$username = Utils::ConvertAuthorizationToUTF8($username); $username = Utils::ConvertAuthorizationToUTF8($username);
$password = Utils::ConvertAuthorizationToUTF8($_SERVER['PHP_AUTH_PW']); $password = Utils::ConvertAuthorizationToUTF8($_SERVER['PHP_AUTH_PW']);
if ($backend->Logon($username, false, "", $password) == false) { if ($backend->Logon($username, "", $password) == false) {
throw new AuthenticationRequiredException("Access denied. Username or password incorrect."); throw new AuthenticationRequiredException("Access denied. Username or password incorrect.");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment