update some minor ux issues

This commit is contained in:
JCEEE
2026-08-31 15:33:17 +01:00
parent 5165c59494
commit 035dbb829a
8 changed files with 100 additions and 108 deletions
+2 -4
View File
@@ -16,9 +16,7 @@ export const actions = {
let authResult: { token: string; record: any };
try {
authResult = await createPbClient()
.collection('users')
.authWithPassword(email, password);
authResult = await createPbClient().collection('users').authWithPassword(email, password);
} catch {
return fail(400, { error: 'Invalid email or password', email });
}
@@ -42,4 +40,4 @@ export const actions = {
const handle = handleOf(user.username || '') || user.name || email.split('@')[0];
throw redirect(303, `/${famSlug}/${handle}`);
}
};
};