From: Lukas Reschke Date: Sun, 19 May 2013 11:33:33 +0000 (+0200) Subject: Add password to pre_login X-Git-Tag: v6.0.0alpha2~759^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7ec36c5bbb10ea67f2958cd867aa116ffce7ae19;p=nextcloud-server.git Add password to pre_login I need this to intercept passwords for my WIP multi-factor authentication app. --- 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 );