Skip to content

Commit da99c25

Browse files
committed
fix: use hasEnabledTwoFactorAuthentication for improved logic clarity in session handling
1 parent 8bc54c9 commit da99c25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Auth/AuthenticatedSessionController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function store(LoginRequest $request): RedirectResponse
3232
{
3333
$user = $request->validateCredentials();
3434

35-
if (Fortify::confirmsTwoFactorAuthentication() && filled($user->two_factor_confirmed_at)) {
35+
if (Fortify::confirmsTwoFactorAuthentication() && $user->hasEnabledTwoFactorAuthentication()) {
3636
$request->session()->put([
3737
'login.id' => $user->getKey(),
3838
'login.remember' => $request->boolean('remember'),

0 commit comments

Comments
 (0)