diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-05-01 12:45:56 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-05-06 20:00:03 +0200 |
commit | 41e604f3eb306c2e74a9cfca6af32ce6a03a3eff (patch) | |
tree | cf6d28ff1892273e7f1ae5207617237cc404a5d4 /views | |
parent | 0b003bef8f36881522e1db1b0b8725ee92b59cd5 (diff) | |
download | server-41e604f3eb306c2e74a9cfca6af32ce6a03a3eff.tar.gz |
Add altcha to password reset request.
Diffstat (limited to 'views')
-rw-r--r-- | views/login.pug | 8 | ||||
-rw-r--r-- | views/reset_password.pug | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/views/login.pug b/views/login.pug index c6e5c21..9a44b44 100644 --- a/views/login.pug +++ b/views/login.pug @@ -12,13 +12,13 @@ html if flash p.error= flash - if redirect - p You need to be logged in to view this page! - p Log in below, or <a href="/signup">sign up</a> for a free account. - if user p You're already logged in! else + if redirect + p You need to be logged in to view this page! + p Log in below, or <a href="/signup">sign up</a> for a free account. + form(method="post" action="/login") input(type="hidden" name="redirect" value=redirect) p diff --git a/views/reset_password.pug b/views/reset_password.pug index 1aa0a29..2fda418 100644 --- a/views/reset_password.pug +++ b/views/reset_password.pug @@ -26,5 +26,6 @@ html label Token: br input(type="text" name="token" size=32 value=token style="font-family:monospace" required) + +altcha_widget() p button(type="submit") Reset password |