summaryrefslogtreecommitdiff
path: root/views/change_mail.ejs
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-07 15:29:04 +0200
committerTor Andersson <tor@ccxvii.net>2021-07-07 15:44:38 +0200
commite1ba80b1b7561f50c71d4ec45912eb39f438b511 (patch)
tree0e45efb6f509ee7b9be5d885864709746e8e22f7 /views/change_mail.ejs
parent0e1ac6bad899cf4b58a5455dd0953cc501bc0810 (diff)
downloadserver-e1ba80b1b7561f50c71d4ec45912eb39f438b511.tar.gz
Add pages to change your user name and email.
Diffstat (limited to 'views/change_mail.ejs')
-rw-r--r--views/change_mail.ejs12
1 files changed, 12 insertions, 0 deletions
diff --git a/views/change_mail.ejs b/views/change_mail.ejs
new file mode 100644
index 0000000..6c3ed62
--- /dev/null
+++ b/views/change_mail.ejs
@@ -0,0 +1,12 @@
+<%- include('header', { title: "Change mail address" }) %>
+<form action="/change_mail" method="post">
+<p>
+Name: <%= user.name %>
+<p>
+Mail: <%= user.mail %>
+<p>
+<label for="newmail">New mail address: </label><br>
+<input type="newmail" id="newmail" name="newmail" required>
+<p>
+<button type="submit">Change mail</button>
+</form>