Skip to content

Commit

Permalink
fixup! ArchaicHammer 2022-05-13: Add enable when 2FA enforced
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Oct 4, 2022
1 parent 905629e commit 190be89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Provider/AtLoginProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ public function getBody(): Template {
return new Template('twofactor_email', 'error');
}
$this->setEnabledActivity();
$this->stateStorage->persist(
State::verifying($this->myUser, $this->mySecret)
);
$tmpl = new Template('twofactor_email', 'challenge_forFirstConfig');
$tmpl->assign('emailAddress', $this->myUser->getEmailAddress());
return $tmpl;
Expand Down

0 comments on commit 190be89

Please sign in to comment.