diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index 78207e8f5e..b9b238167f 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -303,8 +303,8 @@ class LoginController extends Controller */ public function logout(Request $request) { - $request->session()->forget('2fa_authed'); + $request->session()->regenerate(true); Auth::logout(); $settings = Setting::getSettings();