Exemple #1
0
 def generate_token(self):
     self.verification_code = generate_random_string(24).upper()
     self.save()
Exemple #2
0
 def save(self, *args, **kwargs):
     if not self.verification_code:
         self.verification_code = generate_random_string(24).upper()
     super(PasswordResetCode, self).save(*args, **kwargs)
Exemple #3
0
 def save(self, *args, **kwargs):
     if not self.verification_code:
         self.verification_code = generate_random_string(8).upper()
     super(EmailVerificationCode, self).save(*args, **kwargs)
Exemple #4
0
 def generate_token(self):
     self.verification_code = generate_random_string(24).upper()
     self.save()
Exemple #5
0
 def save(self, *args, **kwargs):
     if not self.verification_code:
         self.verification_code = generate_random_string(24).upper()
     super(PasswordResetCode, self).save(*args, **kwargs)
Exemple #6
0
 def save(self, *args, **kwargs):
     if not self.verification_code:
         self.verification_code = generate_random_string(8).upper()
     super(EmailVerificationCode, self).save(*args, **kwargs)