fix: update password handling in user authentication to use plain text instead of encrypted password
parent
68ce998012
commit
70f6d6b048
|
|
@ -99,7 +99,7 @@ class LoginSerializer(serializers.Serializer):
|
||||||
if captcha_cache is None or captcha.lower() != captcha_cache:
|
if captcha_cache is None or captcha.lower() != captcha_cache:
|
||||||
raise AppApiException(1005, _("Captcha code error or expiration"))
|
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:
|
if user is None:
|
||||||
record_login_fail(username)
|
record_login_fail(username)
|
||||||
raise AppApiException(500, _('The username or password is incorrect'))
|
raise AppApiException(500, _('The username or password is incorrect'))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue