summaryrefslogtreecommitdiff
path: root/views/change_name.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_name.ejs
parent0e1ac6bad899cf4b58a5455dd0953cc501bc0810 (diff)
downloadserver-e1ba80b1b7561f50c71d4ec45912eb39f438b511.tar.gz
Add pages to change your user name and email.
Diffstat (limited to 'views/change_name.ejs')
-rw-r--r--views/change_name.ejs12
1 files changed, 12 insertions, 0 deletions
diff --git a/views/change_name.ejs b/views/change_name.ejs
new file mode 100644
index 0000000..eac508f
--- /dev/null
+++ b/views/change_name.ejs
@@ -0,0 +1,12 @@
+<%- include('header', { title: "Change name" }) %>
+<form action="/change_name" method="post">
+<p>
+Name: <%= user.name %>
+<p>
+Mail: <%= user.mail %>
+<p>
+<label for="newname">New name: </label><br>
+<input type="newname" id="newname" name="newname" required>
+<p>
+<button type="submit">Change name</button>
+</form>