summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/forgot_password.pug2
-rw-r--r--views/head.pug8
-rw-r--r--views/login.pug2
-rw-r--r--views/signup.pug2
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