mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 03:18:57 +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);
|
final responseData = json.decode(response.body);
|
||||||
print(responseData);
|
print(responseData);
|
||||||
if (response.statusCode == 401) {
|
if (response.statusCode == 400) {
|
||||||
if (responseData['message'] == 'The user credentials were incorrect.') {
|
if (responseData['message'] == 'The user credentials were incorrect.') {
|
||||||
return 'badinput'; // incorrect user or pass
|
return 'badinput'; // incorrect user or pass
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user