mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 19:38:56 +03:30
Fix wrong user pass
This commit is contained in:
@@ -120,7 +120,7 @@ class Auth with ChangeNotifier {
|
||||
);
|
||||
final responseData = json.decode(response.body);
|
||||
print(responseData);
|
||||
if (response.statusCode == 401) {
|
||||
if (response.statusCode == 400) {
|
||||
if (responseData['message'] == 'The user credentials were incorrect.') {
|
||||
return 'badinput'; // incorrect user or pass
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user