mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-21 21:35:03 +00:00
Improve handling of invalid login credentials.
Adds a check for "There is no account that uses those credentials" to the list of error messages that trigger a logout.
This commit is contained in:
parent
f7f8bb841c
commit
d1f7012540
1 changed files with 2 additions and 1 deletions
|
|
@ -178,7 +178,8 @@ class ApiClientImpl(
|
|||
|| errField.equals("invalidCredentials", ignoreCase = true)
|
||||
|| msgField.contains("invalidCredentials", ignoreCase = true)
|
||||
|| msgField.contains("Missing authentication headers", ignoreCase = true)
|
||||
|
||||
|| msgField.contains("There is no account that uses those credentials", ignoreCase = true)
|
||||
|
||||
if (shouldLogout) {
|
||||
HabiticaBaseApplication.logout(context)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue