summaryrefslogtreecommitdiff
path: root/views/forgot_password.ejs
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-18 17:53:14 +0200
committerTor Andersson <tor@ccxvii.net>2021-06-19 12:02:41 +0200
commitd26b79fa0242008c01a1db379c65f3e06c603c94 (patch)
tree2cdbb47ff87676ec5b54976a1a51f52fb2a20a33 /views/forgot_password.ejs
parentbbf5e1573384707c9389cc1f5ea731d87767ce0f (diff)
downloadserver-d26b79fa0242008c01a1db379c65f3e06c603c94.tar.gz
Add password reset via email token.
Diffstat (limited to 'views/forgot_password.ejs')
-rw-r--r--views/forgot_password.ejs13
1 files changed, 13 insertions, 0 deletions
diff --git a/views/forgot_password.ejs b/views/forgot_password.ejs
new file mode 100644
index 0000000..1679496
--- /dev/null
+++ b/views/forgot_password.ejs
@@ -0,0 +1,13 @@
+<%- include('header', { title: "Forgot password" }) %>
+<% if (user) { %>
+<p>
+You're already logged in!
+<% } else { %>
+<form action="/forgot_password" method="post">
+<p>
+<label for="mail">Mail: </label><br>
+<input type="mail" id="mail" name="mail" required>
+<p>
+<button type="submit">Forgot password</button>
+</form>
+<% } %>