From 8d7230a2b95782009e8d657bba2f318b47cf3b07 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 21 Jan 2015 22:31:05 +0100 Subject: [PATCH] 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. --- lib/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5