From afd16a2aa4606148901f75e22bffb249e2c506d6 Mon Sep 17 00:00:00 2001 From: mohsentaba Date: Sat, 5 Sep 2026 10:57:44 +0330 Subject: [PATCH] remove default otp value --- apps/account/views/user.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/account/views/user.py b/apps/account/views/user.py index 293829e..abfbc59 100644 --- a/apps/account/views/user.py +++ b/apps/account/views/user.py @@ -332,9 +332,7 @@ class UserVerifyView(CreateAPIView): }, status=status.HTTP_201_CREATED) def valied_code(self, current_code, save_code): - if (current_code and save_code) and (str(current_code) != str(save_code)): - if str(current_code) in ["11111", "111111"]: - return current_code + if not current_code or not save_code or str(current_code) != str(save_code): raise ValidationError({"code": "code notfound"}) return current_code