diff options
author | adityacp | 2017-04-07 15:52:53 +0530 |
---|---|---|
committer | adityacp | 2017-04-07 16:12:36 +0530 |
commit | 5938bbf5d6510dcb51096a7e943a2e2208d06b7b (patch) | |
tree | 9e0a49ef3fcdabed60ba9cffd9c27678ddfdb50e /yaksh/urls.py | |
parent | ad73f7b938b7620ab4be202dc33c699cf5cb4ac5 (diff) | |
download | online_test-5938bbf5d6510dcb51096a7e943a2e2208d06b7b.tar.gz online_test-5938bbf5d6510dcb51096a7e943a2e2208d06b7b.tar.bz2 online_test-5938bbf5d6510dcb51096a7e943a2e2208d06b7b.zip |
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
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r-- | yaksh/urls.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py index 00b34e4..03e5354 100644 --- a/yaksh/urls.py +++ b/yaksh/urls.py @@ -5,6 +5,8 @@ urlpatterns = [ url(r'^$', views.index), url(r'^login/$', views.user_login, name='login'), url(r'^logout/$', views.user_logout), + url(r'^activate/(?P<key>.+)$', views.activate_user), + url(r'^new_activation/$', views.new_activation), url(r'^quizzes/$', views.quizlist_user, name='quizlist_user'), url(r'^quizzes/(?P<enrolled>\w+)/$', views.quizlist_user, name='quizlist_user'), url(r'^results/$', views.results_user), |