mirror of
https://github.com/krislamo/DJ-BaseSite
synced 2024-11-09 23:00:34 +00:00
Kris Lamoureux
dce89a3acf
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
10 lines
357 B
Python
10 lines
357 B
Python
from django.db import models
|
|
from django.contrib.auth.models import User
|
|
|
|
class UserProfile(models.Model):
|
|
user = models.ForeignKey(User, unique=True)
|
|
activated = models.BooleanField()
|
|
activate_key = models.CharField(max_length=25, blank=True)
|
|
recovery_key = models.CharField(max_length=25, blank=True)
|
|
recovery_time = models.DateTimeField(blank=True)
|