1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

fixup! Add a two-step setup of OTP

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
Kevin Decherf 2025-07-19 02:39:51 +02:00
parent 5d56ff1e8e
commit 610915162e

View file

@ -355,11 +355,6 @@ class ConfigController extends AbstractController
$this->userManager->updateUser($user); $this->userManager->updateUser($user);
$this->entityManager->flush(); $this->entityManager->flush();
$this->addFlash(
'notice',
'flashes.config.notice.otp_enabled'
);
return $this->render('Config/otp_app.html.twig', [ return $this->render('Config/otp_app.html.twig', [
'backupCodes' => $backupCodes, 'backupCodes' => $backupCodes,
'qr_code' => $googleAuthenticator->getQRContent($user), 'qr_code' => $googleAuthenticator->getQRContent($user),
@ -425,8 +420,9 @@ class ConfigController extends AbstractController
$user->setBackupCodes(null); $user->setBackupCodes(null);
$this->userManager->updateUser($user); $this->userManager->updateUser($user);
$this->entityManager->flush();
return $this->redirect($this->generateUrl('config') . '#set3'); return $this->redirect($this->generateUrl('config_otp_app'), 307);
} }
/** /**