fix nitpick
This commit is contained in:
parent
8ef5431e7a
commit
9d74ff02a4
1 changed files with 3 additions and 2 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue