[PM-9755] Update duo AuthUrl error message to match other clients (#3945)

This commit is contained in:
André Bispo 2024-09-20 14:21:53 +01:00 committed by GitHub
parent 73e158afd0
commit 3238279290
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View file

@ -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()),
)
}

View file

@ -1004,8 +1004,9 @@ Do you want to switch to this account?</string>
<string name="turn_on_later">Turn on later</string>
<string name="turn_on_autofill_later">Turn on autofill later?</string>
<string name="return_to_complete_this_step_anytime_in_settings">You can return to complete this step anytime in Settings.</string>
<string name="what_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.</string>
<string name="what_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.</string>
<string name="youre_all_set">You\'re all set!</string>
<string name="error_connecting_with_the_duo_service_use_a_different_two_step_login_method_or_contact_duo_for_assistance">Error connecting with the Duo service. Use a different two-step login method or contact Duo for assistance.</string>
<string name="master_password_hint_not_specified">Master password hint</string>
<string name="master_password_important_hint">Important: Your master password cannot be recovered if you forget it! 12 characters minimum.</string>
</resources>

View file

@ -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(),
)
}