From 1e08c9b1a80a371c01beb1d102fbd62d40af9202 Mon Sep 17 00:00:00 2001
From: Chris Heathcote
Date: Mon, 30 Nov 2015 16:41:05 +0000
Subject: [PATCH] Added two-factor resending to sign in flow.
Assumes user will have to get an admin to update phone number if lost.
---
app/main/views/index.py | 5 ++++
app/templates/two-factor.html | 2 +-
app/templates/verification-not-received.html | 24 ++++++++++++++++++++
3 files changed, 30 insertions(+), 1 deletion(-)
create mode 100644 app/templates/verification-not-received.html
diff --git a/app/main/views/index.py b/app/main/views/index.py
index 22d2db606..34cbd3e4c 100644
--- a/app/main/views/index.py
+++ b/app/main/views/index.py
@@ -131,3 +131,8 @@ def servicesettings():
@main.route("/api-keys")
def apikeys():
return render_template('api-keys.html')
+
+
+@main.route("/verification-not-received")
+def verificationnotreceived():
+ return render_template('verification-not-received.html')
diff --git a/app/templates/two-factor.html b/app/templates/two-factor.html
index 338100141..9c61f9e68 100644
--- a/app/templates/two-factor.html
+++ b/app/templates/two-factor.html
@@ -16,7 +16,7 @@ Hello world!
- I haven't received a text
+ I haven't received a text
diff --git a/app/templates/verification-not-received.html b/app/templates/verification-not-received.html
new file mode 100644
index 000000000..b21b16850
--- /dev/null
+++ b/app/templates/verification-not-received.html
@@ -0,0 +1,24 @@
+{% extends "admin_template.html" %}
+
+{% block page_title %}
+GOV.UK Notify
+{% endblock %}
+
+{% block content %}
+
+
+
+
Resend verification code
+
+
Text messages sometimes take a few minutes to be received.
If you have not received a text message, you can resend.
+
+
If you no longer have access to your mobile phone and registered number, get in contact with your service manager to reset your number.
P>
+
+
+
+ Resend confirmation code
+
+
+
+
+{% endblock %}
\ No newline at end of file