diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-05-19 13:33:33 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-05-19 13:33:33 +0200 |
commit | 7ec36c5bbb10ea67f2958cd867aa116ffce7ae19 (patch) | |
tree | fafc5a7fb5f933655d54c4af26a247b82bcfaaf8 | |
parent | 1ec92b6377ee784c6e067a8d7e7c10ebf89367e4 (diff) | |
download | nextcloud-server-7ec36c5bbb10ea67f2958cd867aa116ffce7ae19.tar.gz nextcloud-server-7ec36c5bbb10ea67f2958cd867aa116ffce7ae19.zip |
Add password to pre_login
I need this to intercept passwords for my WIP multi-factor
authentication app.
-rw-r--r-- | lib/user.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/user.php b/lib/user.php index 226b716188d..b607874afaf 100644 --- a/lib/user.php +++ b/lib/user.php @@ -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 ); |