ignoring inferred registration disabled when going through the sign in flow

This commit is contained in:
Adam Brown 2022-06-23 18:16:46 +01:00
parent 2ab2af90e9
commit 84ece3b575
2 changed files with 2 additions and 1 deletions

1
changelog.d/6371.bugfix Normal file
View file

@ -0,0 +1 @@
Fixes wrong error message when signing in with wrong credentials

View file

@ -286,7 +286,7 @@ class FtueAuthLoginFragment @Inject constructor() : AbstractSSOFtueAuthFragment<
throwable.isWeakPassword() || throwable.isInvalidPassword() -> {
views.passwordFieldTil.error = errorFormatter.toHumanReadable(throwable)
}
throwable.isRegistrationDisabled() -> {
isSignupMode && throwable.isRegistrationDisabled() -> {
MaterialAlertDialogBuilder(requireActivity())
.setTitle(R.string.dialog_title_error)
.setMessage(getString(R.string.login_registration_disabled))