From 32382792909f1bc259a309649631be0ca7e14b82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bispo?= Date: Fri, 20 Sep 2024 14:21:53 +0100 Subject: [PATCH] [PM-9755] Update duo AuthUrl error message to match other clients (#3945) --- .../ui/auth/feature/twofactorlogin/TwoFactorLoginViewModel.kt | 2 +- app/src/main/res/values/strings.xml | 3 ++- .../auth/feature/twofactorlogin/TwoFactorLoginViewModelTest.kt | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/twofactorlogin/TwoFactorLoginViewModel.kt b/app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/twofactorlogin/TwoFactorLoginViewModel.kt index eec1c672a..959f79b69 100644 --- a/app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/twofactorlogin/TwoFactorLoginViewModel.kt +++ b/app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/twofactorlogin/TwoFactorLoginViewModel.kt @@ -209,7 +209,7 @@ class TwoFactorLoginViewModel @Inject constructor( sendEvent( event = authUrl ?.let { TwoFactorLoginEvent.NavigateToDuo(uri = Uri.parse(it)) } - ?: TwoFactorLoginEvent.ShowToast(R.string.generic_error_message.asText()), + ?: TwoFactorLoginEvent.ShowToast(R.string.error_connecting_with_the_duo_service_use_a_different_two_step_login_method_or_contact_duo_for_assistance.asText()), ) } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3539863a5..2cb1c8aae 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1004,8 +1004,9 @@ Do you want to switch to this account? Turn on later Turn on autofill later? You can return to complete this step anytime in Settings. - You can now use autofill to log into apps and websites using your saved passwords. Now, you can explore everything else Bitwarden has to offer. + You can now use autofill to log into apps and websites using your saved passwords. Now, you can explore everything else Bitwarden has to offer. You\'re all set! + Error connecting with the Duo service. Use a different two-step login method or contact Duo for assistance. Master password hint Important: Your master password cannot be recovered if you forget it! 12 characters minimum. diff --git a/app/src/test/java/com/x8bit/bitwarden/ui/auth/feature/twofactorlogin/TwoFactorLoginViewModelTest.kt b/app/src/test/java/com/x8bit/bitwarden/ui/auth/feature/twofactorlogin/TwoFactorLoginViewModelTest.kt index 48feee6fd..e312a0f68 100644 --- a/app/src/test/java/com/x8bit/bitwarden/ui/auth/feature/twofactorlogin/TwoFactorLoginViewModelTest.kt +++ b/app/src/test/java/com/x8bit/bitwarden/ui/auth/feature/twofactorlogin/TwoFactorLoginViewModelTest.kt @@ -385,7 +385,7 @@ class TwoFactorLoginViewModelTest : BaseViewModelTest() { viewModel.eventFlow.test { viewModel.trySendAction(TwoFactorLoginAction.ContinueButtonClick) assertEquals( - TwoFactorLoginEvent.ShowToast(R.string.generic_error_message.asText()), + TwoFactorLoginEvent.ShowToast(R.string.error_connecting_with_the_duo_service_use_a_different_two_step_login_method_or_contact_duo_for_assistance.asText()), awaitItem(), ) }