Skip to content
Snippets Groups Projects
Commit 67729f5f authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Merge pull request #3421 from owncloud/pre_login_password

Add password to pre_login
parents 694f42df 7ec36c5b
Branches
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
* post_deleteUser(uid) * post_deleteUser(uid)
* pre_setPassword(&run, uid, password) * pre_setPassword(&run, uid, password)
* post_setPassword(uid, password) * post_setPassword(uid, password)
* pre_login(&run, uid) * pre_login(&run, uid, password)
* post_login(uid) * post_login(uid)
* logout() * logout()
*/ */
...@@ -244,7 +244,7 @@ class OC_User { ...@@ -244,7 +244,7 @@ class OC_User {
*/ */
public static function login( $uid, $password ) { public static function login( $uid, $password ) {
$run = true; $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 ) { if( $run ) {
$uid = self::checkPassword( $uid, $password ); $uid = self::checkPassword( $uid, $password );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment