diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-09-30 18:36:19 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-10-05 17:36:50 +0200 |
commit | 2f0ba65a7b21fe6ef0c6131f73c28a823bcb0b0d (patch) | |
tree | 266ad66c4f6ec473a25e0530d1f40d6e7e55a15c /views | |
parent | f968d091d6c3f313054b88a048c63280dd73fd31 (diff) | |
download | server-2f0ba65a7b21fe6ef0c6131f73c28a823bcb0b0d.tar.gz |
Add "delete account" screen.
Diffstat (limited to 'views')
-rw-r--r-- | views/delete_account.pug | 29 | ||||
-rw-r--r-- | views/profile.pug | 2 |
2 files changed, 31 insertions, 0 deletions
diff --git a/views/delete_account.pug b/views/delete_account.pug new file mode 100644 index 0000000..905945c --- /dev/null +++ b/views/delete_account.pug @@ -0,0 +1,29 @@ +//- vim:ts=4:sw=4: +doctype html +html + head + include head + title Delete account + body + include header + article + h1 Delete account + if flash + p.error= flash + + form(method="post" action="/delete-account") + p Name: #{user.name} + p Mail: #{user.mail} + p + label Password: + br + input(type="password" name="password" required) + p + label Type DELETE to confirm: + br + input(type="text" name="confirm" pattern="^DELETE$" required) + p.warning WARNING: Deleting your account is permanent! + p All your games and messages will be lost forever. + p + button(onclick="window.location='/profile'") Cancel + button(type="submit") Delete! diff --git a/views/profile.pug b/views/profile.pug index 52bb0c0..7ed8eff 100644 --- a/views/profile.pug +++ b/views/profile.pug @@ -25,6 +25,8 @@ html | <a href="/change-name">Change user name</a> br | <a href="/change-about">Change profile text</a> + br + | <a href="/delete-account">Delete account</a> p <a href="/chat">Chat log</a> |