Merge pull request #3421 from owncloud/pre_login_password
Add password to pre_login
This commit is contained in:
commit
67729f5f9f
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