Merge pull request #6372 from vector-im/bugfix/adm/wrong-error-on-sign-in

Fixing wrong error message when signing in with wrong credentials
This commit is contained in:
Adam Brown 2022-06-24 13:15:31 +01:00 committed by GitHub
commit c7881fc55e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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))