mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-23 23:49:53 +01:00
Replace TOTP with OTP in locales for more generic error messages
This commit is contained in:
parent
56447c7ad5
commit
af9e6e13da
@ -60,7 +60,7 @@ public function decode(Request $request)
|
||||
catch (AssertionFailedException $exception) {
|
||||
|
||||
$error = \Illuminate\Validation\ValidationException::withMessages([
|
||||
'qrcode' => __('errors.response.no_valid_totp')
|
||||
'qrcode' => __('errors.response.no_valid_otp')
|
||||
]);
|
||||
|
||||
throw $error;
|
||||
|
@ -61,7 +61,7 @@
|
||||
<field-error :form="form" field="account" />
|
||||
</div>
|
||||
<div class="field" style="margin-bottom: 0.5rem;">
|
||||
<label class="label">{{ $t('twofaccounts.forms.totp_uri') }}</label>
|
||||
<label class="label">{{ $t('twofaccounts.forms.otp_uri') }}</label>
|
||||
</div>
|
||||
<div class="field has-addons">
|
||||
<div class="control is-expanded">
|
||||
|
@ -20,7 +20,7 @@
|
||||
'refresh' => 'refresh',
|
||||
'please' => 'Please ',
|
||||
'response' => [
|
||||
'no_valid_totp' => 'No valid TOTP resource in this QR code',
|
||||
'no_valid_otp' => 'No valid OTP resource in this QR code',
|
||||
],
|
||||
'something_wrong_with_server' => 'Something is wrong with your server',
|
||||
'Unable_to_decrypt_uri' => 'Unable to decrypt uri',
|
||||
|
@ -32,7 +32,7 @@
|
||||
],
|
||||
'new_account' => 'New account',
|
||||
'edit_account' => 'Edit account',
|
||||
'totp_uri' => 'TOTP Uri',
|
||||
'otp_uri' => 'OTP Uri',
|
||||
'hotp_counter' => 'HOTP Counter',
|
||||
'use_qrcode' => [
|
||||
'val' => 'Use a qrcode',
|
||||
|
@ -139,7 +139,7 @@
|
||||
'image' => 'Supported format are jpeg, png, bmp, gif, svg, or webp',
|
||||
],
|
||||
'uri' => [
|
||||
'starts_with' => 'Only valid TOTP uri are supported',
|
||||
'starts_with' => 'Only valid OTP uri are supported',
|
||||
],
|
||||
'email' => [
|
||||
'exists' => 'No account found using this email',
|
||||
|
Loading…
Reference in New Issue
Block a user