about summary refs log tree commit diff
path: root/gn_auth/templates
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-08-19 13:56:56 -0500
committerFrederick Muriuki Muriithi2024-08-19 13:56:56 -0500
commite686d9be8b4d78bcc7348323f0ddc45f5548178d (patch)
treeaede5176187e2f927863882eb62e237b30982c1d /gn_auth/templates
parentbdcc9938343c838a8c0be98e6bf53d3bbc03d9df (diff)
downloadgn-auth-e686d9be8b4d78bcc7348323f0ddc45f5548178d.tar.gz
Show "Forgot Password" link.
Provide the user with the "Forgot Password" link, if the backend
supports it.
Diffstat (limited to 'gn_auth/templates')
-rw-r--r--gn_auth/templates/oauth2/authorise-user.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/gn_auth/templates/oauth2/authorise-user.html b/gn_auth/templates/oauth2/authorise-user.html
index d69bdd4..07edb73 100644
--- a/gn_auth/templates/oauth2/authorise-user.html
+++ b/gn_auth/templates/oauth2/authorise-user.html
@@ -29,7 +29,14 @@
     <input type="password" name="user:password" id="user:password"
 	   required="required" class="form-control" />
   </div>
-  
-  <input type="submit" value="authorise" class="btn btn-primary" />
+
+  <div class="form-group">
+    <input type="submit" value="authorise" class="btn btn-primary" />
+    {%if display_forgot_password%}
+    <a href="{{url_for('oauth2.users.forgot_password')}}"
+       title="Click here to change your password."
+       class="form-text text-danger">Forgot Password</a>
+    {%endif%}
+  </div>
 </form>
 {%endblock%}