forked from GNUsocial/gnu-social
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user