diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-01-17 19:34:08 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-01-18 01:14:38 +0100 |
commit | e41be2b62a93fe2905261f5ea729744fe6a5c8e3 (patch) | |
tree | ff82f6a5ecbb44ceb952cd900c1ace7cdfec0250 /views | |
parent | fef72323ae627aa766b0871be7a51d7b30735e52 (diff) | |
download | server-e41be2b62a93fe2905261f5ea729744fe6a5c8e3.tar.gz |
Use Altcha to hinder bots spamming account creation.
Diffstat (limited to 'views')
-rw-r--r-- | views/forgot_password.pug | 2 | ||||
-rw-r--r-- | views/head.pug | 8 | ||||
-rw-r--r-- | views/login.pug | 2 | ||||
-rw-r--r-- | views/signup.pug | 2 |
4 files changed, 14 insertions, 0 deletions
diff --git a/views/forgot_password.pug b/views/forgot_password.pug index 113610c..935cae1 100644 --- a/views/forgot_password.pug +++ b/views/forgot_password.pug @@ -4,6 +4,7 @@ html head include head title Forgot password + +altcha_script() body include header article @@ -19,5 +20,6 @@ html label Mail: br input(type="email" name="mail" required) + +altcha_widget() p button(type="submit") Forgot password diff --git a/views/head.pug b/views/head.pug index 7489651..f388ce5 100644 --- a/views/head.pug +++ b/views/head.pug @@ -8,6 +8,14 @@ link(rel="stylesheet" href="/style.css") if SITE_THEME link(rel="stylesheet" href="/themes/"+SITE_THEME) +mixin altcha_script() + if ALTCHA + script(async defer type="module" src="/altcha.min.js") + +mixin altcha_widget() + if ALTCHA + altcha-widget(challengeurl="/altcha-challenge" hidelogo hidefooter auto="onsubmit" style="--altcha-border-radius:0") + mixin social(title,description,game) meta(property="og:title" content=title) meta(property="og:type" content="website") diff --git a/views/login.pug b/views/login.pug index a470b59..c6e5c21 100644 --- a/views/login.pug +++ b/views/login.pug @@ -4,6 +4,7 @@ html head include head title Login + +altcha_script() body include header article @@ -28,6 +29,7 @@ html label Password: br input(type="password" name="password" required) + +altcha_widget() p button(type="submit") Login p diff --git a/views/signup.pug b/views/signup.pug index c552f91..63b9ab3 100644 --- a/views/signup.pug +++ b/views/signup.pug @@ -4,6 +4,7 @@ html head include head title Signup + +altcha_script() body include header article @@ -36,5 +37,6 @@ html label Password: br input(type="password" name="password" required) + +altcha_widget() p button(type="submit") Create account |