Skip to content

Commit 74279f7

Browse files
Fix incorrect key for error bag. (#360)
* Fix incorrect key for error bag. * Ensure backwards compatibility * Update FailedTwoFactorLoginResponse.php Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 1525bc4 commit 74279f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Http/Responses/FailedTwoFactorLoginResponse.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public function toResponse($request)
2323
]);
2424
}
2525

26-
return redirect()->route('two-factor.login')->withErrors(['email' => $message]);
26+
return redirect()->route('two-factor.login')->withErrors([
27+
'code' => $message,
28+
'email' => $message
29+
]);
2730
}
2831
}

0 commit comments

Comments
 (0)