Add password to pre_login
I need this to intercept passwords for my WIP multi-factor authentication app.
This commit is contained in:
parent
1ec92b6377
commit
7ec36c5bbb
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@
|
|||
* post_deleteUser(uid)
|
||||
* pre_setPassword(&run, uid, password)
|
||||
* post_setPassword(uid, password)
|
||||
* pre_login(&run, uid)
|
||||
* pre_login(&run, uid, password)
|
||||
* post_login(uid)
|
||||
* logout()
|
||||
*/
|
||||
|
@ -244,7 +244,7 @@ class OC_User {
|
|||
*/
|
||||
public static function login( $uid, $password ) {
|
||||
$run = true;
|
||||
OC_Hook::emit( "OC_User", "pre_login", array( "run" => &$run, "uid" => $uid ));
|
||||
OC_Hook::emit( "OC_User", "pre_login", array( "run" => &$run, "uid" => $uid, "password" => $password));
|
||||
|
||||
if( $run ) {
|
||||
$uid = self::checkPassword( $uid, $password );
|
||||
|
|
Loading…
Reference in a new issue