update some minor ux issues
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user