contract signature part is done

This commit is contained in:
behruz-dev
2025-07-17 14:49:06 +05:00
parent 4bde93f3ed
commit 7102cdbcfd
18 changed files with 209 additions and 26 deletions

View File

@@ -26,7 +26,7 @@ class User(BaseModel, AbstractUser):
return self.phone
def generate_code(self):
code = ''.join([str(random.randint(0, 100) % 10) for _ in range(4)])
code = ''.join([str(random.randint(1, 100) % 10) for _ in range(4)])
expiration_time = timezone.now() + datetime.timedelta(minutes=2)
VerificationCode.objects.create(
code=code,