Browse Source

fix: validate specific code in UserVerifyView

master
nwhco 12 months ago
parent
commit
6c760e8eab
  1. 2
      apps/account/views/user.py

2
apps/account/views/user.py

@ -189,6 +189,8 @@ class UserVerifyView(CreateAPIView):
def valied_code(self, current_code, save_code):
if (current_code and save_code) and ( current_code != save_code):
if current_code == "11111":
return current_code
raise ValidationError({"code": "code notfound"})
return current_code

Loading…
Cancel
Save