Disable signups, minor fixes
All checks were successful
ci / build-image (push) Successful in 2m33s

This commit is contained in:
Jonathan Cremin 2025-05-30 09:03:26 +01:00
parent d89c8872d2
commit 0d72c4bf3b
7 changed files with 671 additions and 248 deletions

View file

@ -37,6 +37,10 @@ export async function signin(ctx) {
export async function signup(ctx) {
await ctx.render('signup', { error: 'Signups are disabled.', csrf: ctx.csrf, async: true });
return;
if (!ctx.request.body.email) {
await ctx.render('signup', { csrf: ctx.csrf, async: true });
return;