summaryrefslogtreecommitdiff
path: root/views/profile.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-01-18 00:56:28 +0100
committerTor Andersson <tor@ccxvii.net>2025-01-18 01:14:38 +0100
commitfef72323ae627aa766b0871be7a51d7b30735e52 (patch)
tree52d96be01b3a0f12291f161b2164e84d0b8a1ea9 /views/profile.pug
parent96b9d98ebe79a8d64a7e6285bd500f57c4409dbb (diff)
downloadserver-fef72323ae627aa766b0871be7a51d7b30735e52.tar.gz
Require mail to be verified to enable notifications.
Diffstat (limited to 'views/profile.pug')
-rw-r--r--views/profile.pug9
1 files changed, 5 insertions, 4 deletions
diff --git a/views/profile.pug b/views/profile.pug
index 2437eb2..391fca0 100644
--- a/views/profile.pug
+++ b/views/profile.pug
@@ -14,12 +14,13 @@ html
if ENABLE_MAIL
if !user.is_verified
- p &#x26a0; <a href="/verify-mail">Verify your mail address</a>
-
+ p &#x26a0; <a href="/verify-mail">Verify your mail address!</a>
+ p You must verify your mail address before you can enable notifications.
+ else
+ if !user.notify
+ p <a href="/subscribe">Enable mail notifications</a>
if user.notify
p <a href="/unsubscribe">Disable mail notifications</a>
- else
- p <a href="/subscribe">Enable mail notifications</a>
p
| <a href="/change-password">Change password</a>