summaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorSandro Lutz <sandro.lutz@temparus.ch>2016-12-11 00:20:02 +0100
committerSandro Lutz <sandro.lutz@temparus.ch>2017-02-01 21:50:25 +0100
commit4ebcd5ac0b810314867c04a8dbbbfd484ff34ed1 (patch)
tree1fdb9de81cac01c9063c49d432bc56c595b40550 /core/Controller
parent4456fa57e05ecdcc452e5e20b90152b3e5d331fb (diff)
downloadnextcloud-server-4ebcd5ac0b810314867c04a8dbbbfd484ff34ed1.tar.gz
nextcloud-server-4ebcd5ac0b810314867c04a8dbbbfd484ff34ed1.zip
Add preLoginValidation hook
Signed-off-by: Sandro Lutz <sandro.lutz@temparus.ch>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/LoginController.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php
index b6add48ef61..0d52a19d57e 100644
--- a/core/Controller/LoginController.php
+++ b/core/Controller/LoginController.php
@@ -216,6 +216,9 @@ class LoginController extends Controller {
}
$originalUser = $user;
+
+ $this->userManager->emit('\OC\User', 'preLoginValidation', array($user, $password));
+
// TODO: Add all the insane error handling
/* @var $loginResult IUser */
$loginResult = $this->userManager->checkPassword($user, $password);