mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
token login: emit preLogin event with LoginName
to bring it in line with normal (non-token) login. Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
This commit is contained in:
parent
946430862e
commit
f99f463834
1 changed files with 1 additions and 1 deletions
|
|
@ -647,7 +647,7 @@ class Session implements IUserSession, Emitter {
|
|||
// Ignore and use empty string instead
|
||||
}
|
||||
|
||||
$this->manager->emit('\OC\User', 'preLogin', [$uid, $password]);
|
||||
$this->manager->emit('\OC\User', 'preLogin', [$dbToken->getLoginName(), $password]);
|
||||
|
||||
$user = $this->manager->get($uid);
|
||||
if (is_null($user)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue