Skip to content
This repository was archived by the owner on Jan 1, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dvadmin-backend/apps/vadmin/utils/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ def jarge_captcha(self, request):
try:
get_captcha = CaptchaStore.objects.get(hashkey=idKeyC)
if str(get_captcha.response).lower() == idValueC.lower(): # 如果验证码匹配
get_captcha.delete()
return True
except:
pass
raise GenException(message='验证码错误')
else:
raise GenException(message='验证码错误')

Expand Down