1
0
mirror of https://github.com/krislamo/DJ-BaseSite synced 2024-09-20 04:30:36 +00:00
DJ-BaseSite/myproject/accountprofile/models.py
Kris Lamoureux dce89a3acf 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
2012-10-20 14:01:18 -07:00

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)