summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-05-02 11:50:05 +0200
committerTor Andersson <tor@ccxvii.net>2025-05-06 20:08:41 +0200
commit3ccbcd68cb252848da64ea61796f8479df15643a (patch)
treede38dd51162185546dae7d5c82999f66f6893df2 /views
parent3ba0853f0c51dab103c66091f4a062f612b1368a (diff)
downloadserver-3ccbcd68cb252848da64ea61796f8479df15643a.tar.gz
Tweak verification flow.
Diffstat (limited to 'views')
-rw-r--r--views/account_mail_verify.pug32
-rw-r--r--views/verify_mail.pug21
2 files changed, 32 insertions, 21 deletions
diff --git a/views/account_mail_verify.pug b/views/account_mail_verify.pug
new file mode 100644
index 0000000..fddf2fa
--- /dev/null
+++ b/views/account_mail_verify.pug
@@ -0,0 +1,32 @@
+//- vim:ts=4:sw=4:
+doctype html
+html
+ head
+ include head
+ title Verify mail
+ body
+ include header
+ article
+ h1 Verify mail
+ if flash
+ p.error= flash
+
+ p Your mail address is <code>#{user.mail}</code>
+
+ p If the above address is wrong, you can <a href="/account/change-mail">change it</a>!
+
+ if sent_token
+ p Your token is in the mail!
+ else
+ form(method="post" action="/account/mail/verify-send")
+ p
+ button(type="submit") Send token
+
+ form(method="post")
+ p
+ label Enter your mail verification token here:
+ br
+ input(type="text" name="token" size=32 value=token style="font-family:monospace" required)
+ p
+ button(type="submit") Verify
+
diff --git a/views/verify_mail.pug b/views/verify_mail.pug
deleted file mode 100644
index 17a16e5..0000000
--- a/views/verify_mail.pug
+++ /dev/null
@@ -1,21 +0,0 @@
-//- vim:ts=4:sw=4:
-doctype html
-html
- head
- include head
- title Verify mail
- body
- include header
- article
- h1 Verify mail
- if flash
- p.error= flash
-
- form(method="post")
- p A token has been sent to #{user.mail}.
- p
- label Enter the token here:
- br
- input(type="text" name="token" size=32 value=token style="font-family:monospace" required)
- p
- button(type="submit") Verify