From fef72323ae627aa766b0871be7a51d7b30735e52 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 18 Jan 2025 00:56:28 +0100 Subject: Require mail to be verified to enable notifications. --- views/profile.pug | 9 +++++---- views/signup.pug | 6 ------ 2 files changed, 5 insertions(+), 10 deletions(-) (limited to 'views') 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 ⚠ Verify your mail address - + p ⚠ Verify your mail address! + p You must verify your mail address before you can enable notifications. + else + if !user.notify + p Enable mail notifications if user.notify p Disable mail notifications - else - p Enable mail notifications p | Change password 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 -- cgit v1.2.3