Skip to content
Snippets Groups Projects
Unverified Commit 831c807e authored by Joas Schilling's avatar Joas Schilling
Browse files

Also fix the username when it changed

parent 76367c5c
No related branches found
No related tags found
No related merge requests found
......@@ -52,9 +52,10 @@ class StorePasswordListener implements IEventListener {
$stored = $this->credentialsManager->retrieve($event->getUser()->getUID(), LoginCredentials::CREDENTIALS_IDENTIFIER);
if ($stored && $stored['password'] !== $event->getPassword()) {
if ($stored && ($stored['user'] !== $event->getUser()->getUID()
|| $stored['password'] !== $event->getPassword())) {
$credentials = [
'user' => $stored['user'],
'user' => $event->getUser()->getUID(),
'password' => $event->getPassword()
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment