Commit b5d7512b authored by mku's avatar mku

ZP-553 #comment Configuration whether to use email address or local part only for login

git-svn-id: https://z-push.org/svn/z-push/trunk@1911 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent bba0cfaa
...@@ -155,11 +155,11 @@ class BackendZarafa implements IBackend, ISearchProvider { ...@@ -155,11 +155,11 @@ class BackendZarafa implements IBackend, ISearchProvider {
* @throws AuthenticationRequiredException * @throws AuthenticationRequiredException
*/ */
public function Logon($user, $domain, $pass) { public function Logon($user, $domain, $pass) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("ZarafaBackend->Logon(): Trying to authenticate user '%s'..", $user));
$this->mainUser = strtolower($user);
if(defined('USE_FULLEMAIL_FOR_LOGIN') && ! USE_FULLEMAIL_FOR_LOGIN) { if(defined('USE_FULLEMAIL_FOR_LOGIN') && ! USE_FULLEMAIL_FOR_LOGIN) {
$this->mainUser = Utils::GetLocalPartFromEmail($this->mainUser); $user = Utils::GetLocalPartFromEmail($user);
} }
ZLog::Write(LOGLEVEL_DEBUG, sprintf("ZarafaBackend->Logon(): Trying to authenticate user '%s'..", $user));
$this->mainUser = strtolower($user);
try { try {
// check if notifications are available in php-mapi // check if notifications are available in php-mapi
......
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