mirror of
https://github.com/krislamo/DJ-BaseSite
synced 2025-09-11 21:49:28 +00:00
Added the deactivation and account recovery system
Added the deactivation and account recovery systems. The variable EMAIL_MESSAGE was replaced with ACTIVATE_EMAIL, then RECOVERY_EMAIL was added. The response variable was changed in all views to the correct spelling. The validation file has a new function to validate the regular expressions in an email string and not check the database. And finally the function UserActivationKey in views was renamed to KeyGen
This commit is contained in:
@@ -4,4 +4,6 @@ from django.contrib.auth.models import User
|
||||
class UserProfile(models.Model):
|
||||
user = models.ForeignKey(User, unique=True)
|
||||
activated = models.BooleanField()
|
||||
activatekey = models.CharField(max_length=25, blank=True)
|
||||
activate_key = models.CharField(max_length=25, blank=True)
|
||||
recovery_key = models.CharField(max_length=25, blank=True)
|
||||
recovery_time = models.DateTimeField(blank=True)
|
||||
|
Reference in New Issue
Block a user