diff --git a/lib/Provider/AtLoginProvider.php b/lib/Provider/AtLoginProvider.php index 9e93076..5667c0d 100644 --- a/lib/Provider/AtLoginProvider.php +++ b/lib/Provider/AtLoginProvider.php @@ -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;