Merge pull request #3421 from owncloud/pre_login_password

Add password to pre_login
This commit is contained in:
Michael Gapczynski 2013-05-19 10:09:24 -07:00
commit 67729f5f9f

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