diff options
| author | Jokler <jokler@protonmail.com> | 2020-06-21 06:37:46 +0200 |
|---|---|---|
| committer | Jokler <jokler@protonmail.com> | 2020-06-21 06:37:46 +0200 |
| commit | e6468b012d5b33dd16992652da57f11dd5a6e82f (patch) | |
| tree | e89add440df79d4036b9b44d8c77ee6d69e67201 /templates/settings.htm | |
| download | joklerpoints-e6468b012d5b33dd16992652da57f11dd5a6e82f.tar.gz joklerpoints-e6468b012d5b33dd16992652da57f11dd5a6e82f.zip | |
Diffstat (limited to 'templates/settings.htm')
| -rw-r--r-- | templates/settings.htm | 31 |
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 +--> |
