From: Mikael Nordfeldth Date: Wed, 21 Jan 2015 21:31:05 +0000 (+0100) Subject: EndCheckPassword should run after Start even if pre-exited X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8d7230a2b95782009e8d657bba2f318b47cf3b07;p=quix0rs-gnu-social.git 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. --- diff --git a/lib/util.php b/lib/util.php index e18e1991ff..9e765baed5 100644 --- a/lib/util.php +++ b/lib/util.php @@ -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; }