From: Christoph Wurst Date: Mon, 20 Jun 2016 07:13:47 +0000 (+0200) Subject: fix nitpick X-Git-Tag: v9.1.0RC1~36^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9d74ff02a4014d11020e21e5f73beb02bc749697;p=nextcloud-server.git fix nitpick --- diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php index cd9e973e306..07235c1b42b 100644 --- a/lib/private/User/Session.php +++ b/lib/private/User/Session.php @@ -454,12 +454,13 @@ class Session implements IUserSession, Emitter { } $uid = $dbToken->getUID(); + $password = ''; try { $password = $this->tokenProvider->getPassword($dbToken, $token); - $this->manager->emit('\OC\User', 'preLogin', array($uid, $password)); } catch (PasswordlessTokenException $ex) { - $this->manager->emit('\OC\User', 'preLogin', array($uid, '')); + // Ignore and use empty string instead } + $this->manager->emit('\OC\User', 'preLogin', array($uid, $password)); $user = $this->manager->get($uid); if (is_null($user)) {