fix nitpick
This commit is contained in:
parent
8ef5431e7a
commit
9d74ff02a4
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue