diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-23 09:41:44 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-23 09:41:44 +0100 |
commit | 0660e57b1f9370a87527c4e0926786caa2ee5ee7 (patch) | |
tree | 56671979bffc5e71b6297d66c02f30b0895035f8 /lib/private/Server.php | |
parent | cc4f9986cf2a80de98d4ae9dcf0910a5a76588a8 (diff) | |
download | nextcloud-server-0660e57b1f9370a87527c4e0926786caa2ee5ee7.tar.gz nextcloud-server-0660e57b1f9370a87527c4e0926786caa2ee5ee7.zip |
Don't polute log when loggin into dav with email
* We first try the email as username but this fails
* Then we get the uid from the email and try again
We should not log the first attempt since it polutes the log with failed
login attempts while the login actually is valid.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index 90072f8b63b..f8257cd9801 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -355,7 +355,16 @@ class Server extends ServerContainer implements IServerContainer { $dispatcher = $c->getEventDispatcher(); - $userSession = new \OC\User\Session($manager, $session, $timeFactory, $defaultTokenProvider, $c->getConfig(), $c->getSecureRandom(), $c->getLockdownManager()); + $userSession = new \OC\User\Session( + $manager, + $session, + $timeFactory, + $defaultTokenProvider, + $c->getConfig(), + $c->getSecureRandom(), + $c->getLockdownManager(), + $c->getLogger() + ); $userSession->listen('\OC\User', 'preCreateUser', function ($uid, $password) { \OC_Hook::emit('OC_User', 'pre_createUser', array('run' => true, 'uid' => $uid, 'password' => $password)); }); |