From 5938bbf5d6510dcb51096a7e943a2e2208d06b7b Mon Sep 17 00:00:00 2001 From: adityacp Date: Fri, 7 Apr 2017 15:52:53 +0530 Subject: Change in forms, models, urls, views - Add is_email_expired, activation_key, key_expiry_time in Profile model - Add new functions activate_user and new_activation in views for verifying and activating user via email - Change user_login and user_register functions in views for email verification - Change in forms.py to verify email during registration - Add activation urls in urls.py --- yaksh/models.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'yaksh/models.py') diff --git a/yaksh/models.py b/yaksh/models.py index 802a1fc..3e80570 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -251,6 +251,9 @@ class Profile(models.Model): default=pytz.utc.zone, choices=[(tz, tz) for tz in pytz.common_timezones] ) + is_email_verified = models.BooleanField(default=False) + activation_key = models.CharField(max_length=40, blank=True, null=True) + key_expiry_time = models.DateTimeField(blank=True, null=True) def get_user_dir(self): """Return the output directory for the user.""" -- cgit