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) {
$error = \Illuminate\Validation\ValidationException::withMessages([
'qrcode' => __('errors.response.no_valid_totp')
'qrcode' => __('errors.response.no_valid_otp')
]);
throw $error;

View File

@ -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">

View File

@ -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',

View File

@ -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',

View File

@ -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',