Add password to pre_login

I need this to intercept passwords for my WIP multi-factor
authentication app.
This commit is contained in:
Lukas Reschke 2013-05-19 13:33:33 +02:00
parent 1ec92b6377
commit 7ec36c5bbb

View file

@ -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 );