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:
parent
ce9d18c29d
commit
8d7230a2b9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user