Skip to content

Commit

Permalink
Remove inital flag after user changed password
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas committed Jan 15, 2020
1 parent 887e524 commit da9edff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/Controller/LostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ public function setPassword($token, $userId, $password, $proceed) {
$this->twoFactorManager->clearTwoFactorPending($userId);

$this->config->deleteUserValue($userId, 'core', 'lostpassword');
$this->config->deleteUserValue($userId, 'core', 'initial');
@\OC::$server->getUserSession()->unsetMagicInCookie();
} catch (HintException $e){
return $this->error($e->getHint());
Expand Down

0 comments on commit da9edff

Please sign in to comment.