summaryrefslogtreecommitdiffstats
path: root/templates/settings.htm
diff options
context:
space:
mode:
authorJokler <jokler@protonmail.com>2020-06-21 06:37:46 +0200
committerJokler <jokler@protonmail.com>2020-06-21 06:37:46 +0200
commite6468b012d5b33dd16992652da57f11dd5a6e82f (patch)
treee89add440df79d4036b9b44d8c77ee6d69e67201 /templates/settings.htm
downloadjoklerpoints-e6468b012d5b33dd16992652da57f11dd5a6e82f.tar.gz
joklerpoints-e6468b012d5b33dd16992652da57f11dd5a6e82f.zip
Initial commitHEADmaster
Diffstat (limited to 'templates/settings.htm')
-rw-r--r--templates/settings.htm31
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/settings.htm b/templates/settings.htm
new file mode 100644
index 0000000..5b53a64
--- /dev/null
+++ b/templates/settings.htm
@@ -0,0 +1,31 @@
+{% extends "base.htm" %}
+
+{% block title %}Settings{% endblock %}
+
+{% block content %}
+<h1>User Settings</h1>
+
+<h2>Change Password</h2>
+<a class="button" href="/transactions">Go Back</a>
+
+{% match result %}
+ {% when PasswordResult::Success %}
+ <div class="success">Password change was successful</div>
+ {% when PasswordResult::InvalidOld -%}
+ <div class="error">Old password was incorrect</div>
+ {% when PasswordResult::Missmatch -%}
+ <div class="error">New passwords were not the same</div>
+ {% when PasswordResult::Empty -%}
+{% endmatch %}
+
+<form class="fixed-form highlight-bg" action="/reset-password" method="POST">
+ <input type="password" placeholder="Enter Old Password" name="old-password" required>
+ <input type="password" placeholder="Enter New Password" name="new-password" required>
+ <input type="password" placeholder="Re-Enter New Password" name="confirm-password" required>
+
+ <button type="submit">Confirm</button>
+</form>
+{% endblock %}
+
+<!-- vim: expandtab sw=2 ts=2
+-->