about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-08-30 11:12:09 -0500
committerFrederick Muriuki Muriithi2024-08-30 11:12:31 -0500
commitc1c388ebd84035de5f7731dcdcacc42d9af0308f (patch)
tree09c5b9787b5cd207fb2d7b9b5fbd13a9f87ad9ab
parentb68291da7006b579da7c71c954e96c18d02ddddc (diff)
downloadgn-auth-c1c388ebd84035de5f7731dcdcacc42d9af0308f.tar.gz
Commit missing template.
-rw-r--r--gn_auth/templates/users/change-password.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/gn_auth/templates/users/change-password.html b/gn_auth/templates/users/change-password.html
new file mode 100644
index 0000000..f328255
--- /dev/null
+++ b/gn_auth/templates/users/change-password.html
@@ -0,0 +1,52 @@
+{%extends "base.html"%}
+
+{%block title%}gn-auth: Change Password{%endblock%}
+
+{%block pagetitle%}Change Password{%endblock%}
+
+{%block content%}
+{{flash_messages()}}
+
+<div class="container-fluid">
+  <div class="row"><h1>Change Password</h1></div>
+
+  <div class="row">
+    <form method="POST"
+          action="{{url_for('oauth2.users.change_password',
+                  client_id=client_id,
+                  redirect_uri=redirect_uri,
+                  response_type=response_type,
+                  forgot_password_token=forgot_password_token)}}">
+      <div class="form-group">
+        <p class="form-text text-info">
+          Change the password for your account with the email
+          "<strong>{{email}}</strong>".
+        </p>
+      </div>
+
+      <div class="form-group">
+        <label for="txt-password" class="form-label">New Password</label>
+        <input type="password"
+               id="txt-password"
+               name="password"
+               class="form-control"
+               required="required" />
+      </div>
+
+      <div class="form-group">
+        <label for="txt-confirm" class="form-label">Confirm New Password</label>
+        <input type="password"
+               id="txt-confirm"
+               name="confirm-password"
+               class="form-control"
+               required="required" />
+      </div>
+
+      <div class="form-group">
+        <input type="submit" class="btn btn-danger" value="change password" />
+      </div>
+    </form>
+  </div>
+
+</div>
+{%endblock%}