Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 46b0a78

Browse files
committed
Retrieve user id from session correctly
1 parent 62c5a9e commit 46b0a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Controllers/TwoFactorAuthenticatesUsers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function verifyToken(VerifySMSToken $request)
7474
*/
7575
protected function attemptTwoFactorAuth(Request $request)
7676
{
77-
$user = User::findOrFail($request->session()->get('two-factor:auth:id'));
77+
$user = User::findOrFail($request->session()->get('two-factor:auth')['id']);
7878

7979
if (resolve(TwoFactorProvider::class)->verify($user, $request->input('token'))) {
8080
auth()->login($user); // If SMS code validation passes, login user

0 commit comments

Comments
 (0)