From 4f5d0e86cde790fa294e69c643031ce2cd90b2a5 Mon Sep 17 00:00:00 2001 From: "hanie.khodkari" Date: Fri, 28 Mar 2025 20:02:07 +0330 Subject: [PATCH] Fix wrong user pass --- lib/providers/auth.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/providers/auth.dart b/lib/providers/auth.dart index 8982deb..4fc4ec3 100755 --- a/lib/providers/auth.dart +++ b/lib/providers/auth.dart @@ -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 {