Added forgot password / create new password screens

Create new password would be sent in an email to the user.
This commit is contained in:
Chris Heathcote
2015-11-30 16:19:59 +00:00
parent b2dd3ca214
commit 48f722b3b9
4 changed files with 62 additions and 1 deletions

View File

@@ -101,3 +101,13 @@ def showjob():
@main.route("/jobs/job/notification")
def shownotification():
return render_template('notification.html')
@main.route("/forgot-password")
def forgotpassword():
return render_template('forgot-password.html')
@main.route("/new-password")
def newpassword():
return render_template('new-password.html')

View File

@@ -0,0 +1,27 @@
{% extends "admin_template.html" %}
{% block page_title %}
GOV.UK Notify
{% endblock %}
{% block content %}
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-xlarge">Create a new password</h1>
<p>If you have forgotten your password, we can send you an email to create a new password.</p>
<p>
<label class="form-label" for="email">Email address</label>
<input class="form-control" id="email" type="text" value="">
</p>
<p>
<a class="button" href="sign-in" role="button">Send email</a>
</p>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,24 @@
{% extends "admin_template.html" %}
{% block page_title %}
GOV.UK Notify
{% endblock %}
{% block content %}
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-xlarge">Create a new password</h1>
<p>
<label class="form-label" for="password">Password</label>
<input class="form-control-1-4" id="password" type="password">
</p>
<p>
<a class="button" href="two-factor" role="button">Continue</a>
</p>
</div>
</div>
{% endblock %}

View File

@@ -19,7 +19,7 @@ Hello world!
<p>
<label class="form-label" for="password">Password</label>
<input class="form-control-1-4" id="password" type="password"><br>
<span class="font-xsmall"><a href="">Forgotten password?</a></span>
<span class="font-xsmall"><a href="forgot-password">Forgotten password?</a></span>
</p>
<p>