mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 13:55:01 +02:00
Move locales to single json files & Replace laravel-vue-i18n with vue-i18n
This commit is contained in:
@ -80,7 +80,7 @@ class WebAuthnRecoveryController extends Controller
|
||||
*/
|
||||
protected function sendRecoveryResponse(Request $request, string $response) : JsonResponse
|
||||
{
|
||||
return response()->json(['message' => __('auth.webauthn.webauthn_login_disabled')]);
|
||||
return response()->json(['message' => __('message.auth.webauthn.webauthn_login_disabled')]);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -93,7 +93,7 @@ class WebAuthnRecoveryController extends Controller
|
||||
{
|
||||
switch ($response) {
|
||||
case Password::INVALID_TOKEN:
|
||||
throw ValidationException::withMessages(['token' => [__('auth.webauthn.invalid_reset_token')]]);
|
||||
throw ValidationException::withMessages(['token' => [__('message.auth.webauthn.invalid_reset_token')]]);
|
||||
default:
|
||||
throw ValidationException::withMessages(['email' => [trans($response)]]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user