EndCheckPassword should run after Start even if pre-exited

StartCheckPassword can exit beforehand either with success or failure,
and we want EndCheckPassword to check for stuff like failed login attempts.
This commit is contained in:
Mikael Nordfeldth 2015-01-21 22:31:05 +01:00
parent ce9d18c29d
commit 8d7230a2b9

View File

@ -251,8 +251,8 @@ function common_check_user($nickname, $password)
$authenticatedUser = $user;
}
}
Event::handle('EndCheckPassword', array($nickname, $password, $authenticatedUser));
}
Event::handle('EndCheckPassword', array($nickname, $password, $authenticatedUser));
return $authenticatedUser;
}