]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/MfaBackupCodesController.php
Worked on MFA setup required flow
[bookstack] / app / Http / Controllers / Auth / MfaBackupCodesController.php
index 1353d4562870658fe08845b1ce5deeed4109932b..41c161d7c2145ebb5e28446b3e24f6bd336f37bc 100644 (file)
@@ -78,7 +78,7 @@ class MfaBackupCodesController extends Controller
         MfaValue::upsertWithValue($user, MfaValue::METHOD_BACKUP_CODES, $updatedCodes);
 
         $mfaSession->markVerifiedForUser($user);
-        $loginService->reattemptLoginFor($user, 'mfa-backup_codes');
+        $loginService->reattemptLoginFor($user);
 
         if ($codeService->countCodesInSet($updatedCodes) < 5) {
             $this->showWarningNotification('You have less than 5 backup codes remaining, Please generate and store a new set before you run out of codes to prevent being locked out of your account.');