fix: update password handling in user authentication to use plain text instead of encrypted password

v3.2
wxg0103 2025-09-17 17:52:35 +08:00
parent 68ce998012
commit 70f6d6b048
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class LoginSerializer(serializers.Serializer):
if captcha_cache is None or captcha.lower() != captcha_cache:
raise AppApiException(1005, _("Captcha code error or expiration"))
user = QuerySet(User).filter(username=username, password=password_encrypt(password)).first()
user = QuerySet(User).filter(username=username, password=password).first()
if user is None:
record_login_fail(username)
raise AppApiException(500, _('The username or password is incorrect'))