diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-05-02 10:50:22 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-05-08 12:27:31 +0200 |
commit | 143c403dc051453d44735d53f4477f1caa74a202 (patch) | |
tree | ae6efed733bf4cd0ac7d7f56388760b541a4ca26 /views | |
parent | fe41e7119025554ecc1e9b56abd21f335410b7c5 (diff) | |
download | server-143c403dc051453d44735d53f4477f1caa74a202.tar.gz |
Put account management pages under "/account" URL prefix.
Diffstat (limited to 'views')
-rw-r--r-- | views/head.pug | 2 | ||||
-rw-r--r-- | views/login.pug | 2 | ||||
-rw-r--r-- | views/profile.pug | 38 | ||||
-rw-r--r-- | views/webhook.pug | 4 |
4 files changed, 23 insertions, 23 deletions
diff --git a/views/head.pug b/views/head.pug index eec1299..3707757 100644 --- a/views/head.pug +++ b/views/head.pug @@ -14,7 +14,7 @@ mixin altcha_script() mixin altcha_widget() if ALTCHA - altcha-widget(challengeurl="/altcha-challenge" hidelogo hidefooter auto="onsubmit" style="--altcha-border-radius:0") + altcha-widget(challengeurl="/api/altcha-challenge" hidelogo hidefooter auto="onsubmit" style="--altcha-border-radius:0") mixin social(title,description,game) meta(property="og:title" content=title) diff --git a/views/login.pug b/views/login.pug index f91129e..ec8be48 100644 --- a/views/login.pug +++ b/views/login.pug @@ -33,4 +33,4 @@ html p button(type="submit") Login p - a(href="/forgot-password") Forgot password + a(href="/account/forgot-password") Forgot password diff --git a/views/profile.pug b/views/profile.pug index 4ecf289..39f1977 100644 --- a/views/profile.pug +++ b/views/profile.pug @@ -13,38 +13,38 @@ html p Your mail address is #{user.mail} if ENABLE_MAIL - if !user.is_verified - p ⚠ <a href="/verify-mail">Verify your mail address!</a> + if !mail.is_verified + p ⚠ <a href="/account/mail/verify">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> + if !mail.notify + p <a href="/account/mail/subscribe">Enable mail notifications</a> + if mail.notify + p <a href="/account/mail/unsubscribe">Disable mail notifications</a> p - | <a href="/change-password">Change password</a> + | <a href="/account/change-password">Change password</a> br - | <a href="/change-mail">Change mail address</a> + | <a href="/account/change-mail">Change mail address</a> br - | <a href="/change-name">Change user name</a> + | <a href="/account/change-name">Change user name</a> br - | <a href="/change-about">Change profile text</a> + | <a href="/account/change-about">Change profile text</a> br - | <a href="/delete-account">Delete account</a> + | <a href="/account/delete">Delete account</a> if ENABLE_WEBHOOKS - if !user.webhook - p <a href="/webhook">Configure webhook</a> - else if user.webhook.error + if !webhook + p <a href="/account/webhook">Configure webhook</a> + else if webhook.error dl - dt <a href="/webhook">Configure webhook</a> - dd.error ERROR: #{user.webhook.error} + dt <a href="/account/webhook">Configure webhook</a> + dd.error ERROR: #{webhook.error} else dl - dt <a href="/webhook">Configure webhook</a> - dd= new URL(user.webhook.url).hostname + dt <a href="/account/webhook">Configure webhook</a> + dd= new URL(webhook.url).hostname p - form(action="/logout" method="post") + form(action="/account/logout" method="post") button(type="submit") Logout diff --git a/views/webhook.pug b/views/webhook.pug index 20d20ac..b9817ef 100644 --- a/views/webhook.pug +++ b/views/webhook.pug @@ -14,7 +14,7 @@ html(lang="en") - var format = webhook && webhook.format || "" - var prefix = webhook && webhook.prefix || "" - form(action="/api/webhook/update" method="post") + form(action="/account/webhook/update" method="post") if webhook && webhook.error p.error ERROR: #{webhook.error} p Webhook URL: @@ -34,7 +34,7 @@ html(lang="en") button(type="submit") Create if webhook - form(action="/api/webhook/delete" method="post") + form(action="/account/webhook/delete" method="post") button(type="submit") Delete h2 Discord Notifications |