Skip to content

Commit 70f6d6b

Browse files
committed
fix: update password handling in user authentication to use plain text instead of encrypted password
1 parent 68ce998 commit 70f6d6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/users/serializers/login.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def login(instance):
9999
if captcha_cache is None or captcha.lower() != captcha_cache:
100100
raise AppApiException(1005, _("Captcha code error or expiration"))
101101

102-
user = QuerySet(User).filter(username=username, password=password_encrypt(password)).first()
102+
user = QuerySet(User).filter(username=username, password=password).first()
103103
if user is None:
104104
record_login_fail(username)
105105
raise AppApiException(500, _('The username or password is incorrect'))

0 commit comments

Comments
 (0)