Merge pull request #25725 from lmamane/master

token login: emit preLogin event with LoginName
This commit is contained in:
Roeland Jago Douma 2021-03-05 08:46:46 +01:00 committed by GitHub
commit 3c9a62721f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {