revert disable 2fa on demo

This commit is contained in:
Saeed Vaziry
2025-06-27 08:39:43 +02:00
parent f532b56abb
commit f3df6b8673

View File

@ -72,10 +72,6 @@ public function password(Request $request): RedirectResponse
#[Post('/enable-two-factor', name: 'profile.enable-two-factor')]
public function enableTwoFactor(): RedirectResponse
{
if (config('app.demo')) {
return back()->with('error', 'Two factor authentication cannot be enabled in demo mode.');
}
$user = user();
app(EnableTwoFactorAuthentication::class)($user);