Skip to content
Snippets Groups Projects
Commit 5064d993 authored by Schüler Daniel (dschueler)'s avatar Schüler Daniel (dschueler)
Browse files

Applying Pull Request 'User lookup is backward'...

Applying Pull Request 'User lookup is backward' (https://github.com/go2sh/concrete5-ldap-login/pull/2) manualy.
parent 204c57a7
No related branches found
No related tags found
No related merge requests found
......@@ -178,10 +178,10 @@ class Controller extends AuthenticationTypeController {
}
if (Config::get('concrete.user.registration.email_registration')) {
$userInfo = UserInfo::getByUserName($uName);
$userInfo = UserInfo::getByEmail($uName);
}
else {
$userInfo = UserInfo::getByEmail($uName);
$userInfo = UserInfo::getByUserName($uName);
}
if (!is_object($userInfo)) {
if (Config::get('auth.ldap.allowRegistration',false)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment