From 2615fd7661ca153f0a5155aa72f4d2999238b58e Mon Sep 17 00:00:00 2001 From: pycook Date: Sat, 31 Aug 2019 10:09:08 +0800 Subject: [PATCH] invalid username or password -> 403 --- api/views/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/views/account.py b/api/views/account.py index 4b1d9dc..f6d7dbc 100644 --- a/api/views/account.py +++ b/api/views/account.py @@ -25,7 +25,7 @@ class LoginView(APIView): password = request.values.get("password") user, authenticated = User.query.authenticate(username, password) if not authenticated: - return abort(401, "invalid username or password") + return abort(403, "invalid username or password") login_user(user)