Fix indentation

Signed-off-by: Sandro Lutz <sandro.lutz@temparus.ch>
This commit is contained in:
Sandro Lutz 2016-12-11 11:24:05 +01:00
parent 4ebcd5ac0b
commit e14d50eb1f
2 changed files with 4 additions and 4 deletions

View File

@ -217,7 +217,7 @@ class LoginController extends Controller {
$originalUser = $user;
$this->userManager->emit('\OC\User', 'preLoginValidation', array($user, $password));
$this->userManager->emit('\OC\User', 'preLoginValidation', array($user, $password));
// TODO: Add all the insane error handling
/* @var $loginResult IUser */

View File

@ -295,9 +295,9 @@ class Server extends ServerContainer implements IServerContainer {
/** @var $user \OC\User\User */
\OC_Hook::emit('OC_User', 'post_setPassword', array('run' => true, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword));
});
$userSession->listen('\OC\User', 'preLoginValidation', function ($uid, $password) {
\OC_Hook::emit('OC_User', 'pre_loginValidation', array('run' => true, 'uid' => $uid, 'password' => $password));
});
$userSession->listen('\OC\User', 'preLoginValidation', function ($uid, $password) {
\OC_Hook::emit('OC_User', 'pre_loginValidation', array('run' => true, 'uid' => $uid, 'password' => $password));
});
$userSession->listen('\OC\User', 'preLogin', function ($uid, $password) {
\OC_Hook::emit('OC_User', 'pre_login', array('run' => true, 'uid' => $uid, 'password' => $password));
});