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

Commit 4074961

Browse files
committed
Reformat error message
1 parent a93ab2e commit 4074961

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Http/Controllers/ThrottlesTwoFactorAuths.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected function sendLockoutResponse(Request $request)
4848

4949
$message = __('twofactor-auth::twofactor-auth.throttle', ['seconds' => $seconds]);
5050

51-
$errors = [$this->username() => $message];
51+
$errors = ['token' => $message];
5252

5353
if ($request->expectsJson()) {
5454
return response()->json($errors, 423);

src/Http/Controllers/TwoFactorAuthenticatesUsers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ protected function sendFailedTwoFactorAuthResponse(Request $request)
128128
*/
129129
protected function sendKillTwoFactorAuthResponse(Request $request)
130130
{
131-
$errors = [$this->username() => __('twofactor-auth::twofactor-auth.expired')];
131+
$errors = ['token' => __('twofactor-auth::twofactor-auth.expired')];
132132

133133
if ($request->expectsJson()) {
134134
return response()->json($errors, 401);

0 commit comments

Comments
 (0)