Commit 385f91a9 authored by Skia's avatar Skia

Add a missing template

parent 431b81cd
{% extends "core/base.html" %}
{% block content %}
<h2>Password reset sent</h2>
<p>
We've emailed you instructions for setting your password, if an account exists with the email you entered. You should
receive them shortly.
</p>
<p>
If you don't receive an email, please make sure you've entered the address you registered with, and check your spam
folder.
</p>
{% endblock %}
......@@ -39,6 +39,7 @@ class PagePropView(UpdateView):
def get_object(self):
page_name = self.kwargs['page_name']
p = Page.get_page_by_full_name(page_name)
# Create the page if it does not exists
if p == None:
parent_name = '/'.join(page_name.split('/')[:-1])
name = page_name.split('/')[-1]
......
......@@ -36,27 +36,37 @@ def password_change_done(request):
return views.password_change_done(request, template_name="core/password_change_done.html")
def password_reset(request):
"""
Allows someone to enter an email adresse for resetting password
"""
return views.password_reset(request,
template_name="core/password_reset.html",
email_template_name="core/password_reset_email.html",
post_reset_redirect="core:password_reset",
post_reset_redirect="core:password_reset_done",
)
def password_reset_done(request):
return views.password_reset_done(request)
pass
"""
Confirm that the reset email has been sent
"""
return views.password_reset_done(request, template_name="core/password_reset_done.html")
def password_reset_confirm(request, uidb64=None, token=None):
"""
Provide a reset password formular
"""
return views.password_reset_confirm(request, uidb64=uidb64, token=token,
post_reset_redirect="core:password_reset_complete",
template_name="core/password_reset_confirm.html",
)
def password_reset_complete(request):
"""
Confirm the password has sucessfully been reset
"""
return views.password_reset_complete(request,
template_name="core/password_reset_complete.html",
)
pass
def register(request):
context = {'title': 'Register a user'}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment