Replace TOTP with OTP in locales for more generic error messages

This commit is contained in:
Bubka 2020-02-05 17:17:25 +01:00
parent 56447c7ad5
commit af9e6e13da
5 changed files with 5 additions and 5 deletions

View File

@ -60,7 +60,7 @@ public function decode(Request $request)
catch (AssertionFailedException $exception) { catch (AssertionFailedException $exception) {
$error = \Illuminate\Validation\ValidationException::withMessages([ $error = \Illuminate\Validation\ValidationException::withMessages([
'qrcode' => __('errors.response.no_valid_totp') 'qrcode' => __('errors.response.no_valid_otp')
]); ]);
throw $error; throw $error;

View File

@ -61,7 +61,7 @@
<field-error :form="form" field="account" /> <field-error :form="form" field="account" />
</div> </div>
<div class="field" style="margin-bottom: 0.5rem;"> <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>
<div class="field has-addons"> <div class="field has-addons">
<div class="control is-expanded"> <div class="control is-expanded">

View File

@ -20,7 +20,7 @@
'refresh' => 'refresh', 'refresh' => 'refresh',
'please' => 'Please ', 'please' => 'Please ',
'response' => [ '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', 'something_wrong_with_server' => 'Something is wrong with your server',
'Unable_to_decrypt_uri' => 'Unable to decrypt uri', 'Unable_to_decrypt_uri' => 'Unable to decrypt uri',

View File

@ -32,7 +32,7 @@
], ],
'new_account' => 'New account', 'new_account' => 'New account',
'edit_account' => 'Edit account', 'edit_account' => 'Edit account',
'totp_uri' => 'TOTP Uri', 'otp_uri' => 'OTP Uri',
'hotp_counter' => 'HOTP Counter', 'hotp_counter' => 'HOTP Counter',
'use_qrcode' => [ 'use_qrcode' => [
'val' => 'Use a qrcode', 'val' => 'Use a qrcode',

View File

@ -139,7 +139,7 @@
'image' => 'Supported format are jpeg, png, bmp, gif, svg, or webp', 'image' => 'Supported format are jpeg, png, bmp, gif, svg, or webp',
], ],
'uri' => [ 'uri' => [
'starts_with' => 'Only valid TOTP uri are supported', 'starts_with' => 'Only valid OTP uri are supported',
], ],
'email' => [ 'email' => [
'exists' => 'No account found using this email', 'exists' => 'No account found using this email',