]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Auth/MfaTotpController.php
Reverted shift change to old migration
[bookstack] / app / Http / Controllers / Auth / MfaTotpController.php
index 694d69d76ec9edcd3ac3af362d548c76b8ce1ef2..5644f02688e8618a99e0599bb60eb3cb1b68f82e 100644 (file)
@@ -31,7 +31,7 @@ class MfaTotpController extends Controller
             session()->put(static::SETUP_SECRET_SESSION_KEY, encrypt($totpSecret));
         }
 
-        $qrCodeUrl = $totp->generateUrl($totpSecret);
+        $qrCodeUrl = $totp->generateUrl($totpSecret, $this->currentOrLastAttemptedUser());
         $svg = $totp->generateQrCodeSvg($qrCodeUrl);
 
         return view('mfa.totp-generate', [