Skip to content

Commit

Permalink
token login: emit preLogin event with LoginName
Browse files Browse the repository at this point in the history
to bring it in line with normal (non-token) login.

Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
  • Loading branch information
Lionel Elie Mamane committed Feb 19, 2021
1 parent 9464308 commit f99f463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/User/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ private function loginWithToken($token) {
// 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)) {
Expand Down

0 comments on commit f99f463

Please sign in to comment.