From 9f67e66b83d158b99582c2984fc253b6e6abd537 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 1 May 2025 22:04:10 +0200 Subject: Simplify form post actions. Put account management pages under "/account" URL prefix. Set logged in user in res.locals for use in pug templates. Tweak verification flow. Require password to change name and mail. Show user statistics on profile (use pug mixin). Remove "api" prefix on many routes. --- views/login.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views/login.pug') diff --git a/views/login.pug b/views/login.pug index 9a44b44..ec8be48 100644 --- a/views/login.pug +++ b/views/login.pug @@ -19,7 +19,7 @@ html p You need to be logged in to view this page! p Log in below, or sign up for a free account. - form(method="post" action="/login") + form(method="post") input(type="hidden" name="redirect" value=redirect) p label Name or mail: @@ -33,4 +33,4 @@ html p button(type="submit") Login p - a(href="/forgot-password") Forgot password + a(href="/account/forgot-password") Forgot password -- cgit v1.2.3