Remove inital flag after user changed password

Signed-off-by: Jonas <jonas.blaesche@uni-konstanz.de>
This commit is contained in:
Jonas 2020-01-15 19:27:58 +01:00
parent 36cd7ad290
commit 15366967d0
1 changed files with 1 additions and 0 deletions

View File

@ -326,6 +326,7 @@ class LostController extends Controller {
$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());