From af9e6e13da42ca8d9c967782392f5705930da14d Mon Sep 17 00:00:00 2001
From: Bubka <858858+Bubka@users.noreply.github.com>
Date: Wed, 5 Feb 2020 17:17:25 +0100
Subject: [PATCH] Replace TOTP with OTP in locales for more generic error
messages
---
app/Http/Controllers/QrCodeController.php | 2 +-
resources/js/views/twofaccounts/Create.vue | 2 +-
resources/lang/en/errors.php | 2 +-
resources/lang/en/twofaccounts.php | 2 +-
resources/lang/en/validation.php | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/app/Http/Controllers/QrCodeController.php b/app/Http/Controllers/QrCodeController.php
index 5750b8f6..63f9475d 100644
--- a/app/Http/Controllers/QrCodeController.php
+++ b/app/Http/Controllers/QrCodeController.php
@@ -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;
diff --git a/resources/js/views/twofaccounts/Create.vue b/resources/js/views/twofaccounts/Create.vue
index 0d6901a6..5c6f6644 100644
--- a/resources/js/views/twofaccounts/Create.vue
+++ b/resources/js/views/twofaccounts/Create.vue
@@ -61,7 +61,7 @@