diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-01-18 00:56:28 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-01-18 01:14:38 +0100 |
commit | fef72323ae627aa766b0871be7a51d7b30735e52 (patch) | |
tree | 52d96be01b3a0f12291f161b2164e84d0b8a1ea9 /views | |
parent | 96b9d98ebe79a8d64a7e6285bd500f57c4409dbb (diff) | |
download | server-fef72323ae627aa766b0871be7a51d7b30735e52.tar.gz |
Require mail to be verified to enable notifications.
Diffstat (limited to 'views')
-rw-r--r-- | views/profile.pug | 9 | ||||
-rw-r--r-- | views/signup.pug | 6 |
2 files changed, 5 insertions, 10 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 ⚠ <a href="/verify-mail">Verify your mail address</a> - + p ⚠ <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> diff --git a/views/signup.pug b/views/signup.pug index 8ce41a2..c552f91 100644 --- a/views/signup.pug +++ b/views/signup.pug @@ -36,11 +36,5 @@ html label Password: br input(type="password" name="password" required) - div - label - input(type="checkbox" name="notify" value="true") - | Enable mail notifications - div(style="margin-left:2rem") - i (when it is your turn, your games are ready to start, etc.) p button(type="submit") Create account |