]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
EndCheckPassword should run after Start even if pre-exited
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 21 Jan 2015 21:31:05 +0000 (22:31 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 21 Jan 2015 21:31:05 +0000 (22:31 +0100)
StartCheckPassword can exit beforehand either with success or failure,
and we want EndCheckPassword to check for stuff like failed login attempts.

lib/util.php

index e18e1991ff5f3c2df0c470a6b3d79866fbc78a2a..9e765baed5d531058696d4600b004d7a3f57fc5f 100644 (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;
 }