This commit is contained in:
parent
d89c8872d2
commit
0d72c4bf3b
7 changed files with 671 additions and 248 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue