fix nitpick

This commit is contained in:
Christoph Wurst 2016-06-20 09:13:47 +02:00
parent 8ef5431e7a
commit 9d74ff02a4
No known key found for this signature in database
GPG key ID: FEECD2543CA6EAF0

View file

@ -454,12 +454,13 @@ class Session implements IUserSession, Emitter {
} }
$uid = $dbToken->getUID(); $uid = $dbToken->getUID();
$password = '';
try { try {
$password = $this->tokenProvider->getPassword($dbToken, $token); $password = $this->tokenProvider->getPassword($dbToken, $token);
$this->manager->emit('\OC\User', 'preLogin', array($uid, $password));
} catch (PasswordlessTokenException $ex) { } 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); $user = $this->manager->get($uid);
if (is_null($user)) { if (is_null($user)) {