diff options
author | Aleksandar Micovic <aleks.micovic@gmail.com> | 2011-05-30 23:51:30 -0400 |
---|---|---|
committer | Aleksandar Micovic <aleks.micovic@gmail.com> | 2011-05-30 23:51:30 -0400 |
commit | 28afb47ca82b0857aad546ef4cbf869de1ca95a5 (patch) | |
tree | d587cf5492c9cca298807fffe164655625707a6d /mediagoblin/auth/views.py | |
parent | 8bfc87e18e0d3654ddb85b8644002ce6d3610f05 (diff) | |
download | mediagoblin-28afb47ca82b0857aad546ef4cbf869de1ca95a5.tar.lz mediagoblin-28afb47ca82b0857aad546ef4cbf869de1ca95a5.tar.xz mediagoblin-28afb47ca82b0857aad546ef4cbf869de1ca95a5.zip |
Added a temporary verification page informing the user they need
to authenticate.
Diffstat (limited to 'mediagoblin/auth/views.py')
-rw-r--r-- | mediagoblin/auth/views.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py index 6b5ce88c..edac74a8 100644 --- a/mediagoblin/auth/views.py +++ b/mediagoblin/auth/views.py @@ -168,3 +168,18 @@ def verify_email(request): {'request': request, 'user': user, 'verification_successful': verification_successful})) + +def verify_email_notice(request): + """ + Verify warning view. + + When the user tries to do some action that requires their account + to be verified beforehand, this view is called upon! + """ + + template = request.template_env.get_template( + 'mediagoblin/auth/verification_needed.html') + return Response( + template.render( + {'request': request})) + |