bug fix for ott
This commit is contained in:
parent
9e2b7e0fa7
commit
f9bdec1167
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ class User(AbstractUser):
|
|||
self.otp_try = 0
|
||||
|
||||
def set_ott(self):
|
||||
self.ott = ''.join(random.choice(string.ascii_letters+string.digits+'()*%#@.') for _ in range(32))
|
||||
self.ott = ''.join(random.choice(string.ascii_letters+string.digits) for _ in range(32))
|
||||
# self.ott = ''.join(random.choice(string.ascii_letters+string.digits+string.punctuation) for _ in range(32))
|
||||
self.ott_expire = timezone.now() + timedelta(seconds=300)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue