Add user first and last name fields to signup form
This commit is contained in:
12
src/routes/+layout.server.ts
Normal file
12
src/routes/+layout.server.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { LayoutServerLoad, PageServerLoad } from "./$types";
|
||||
|
||||
export const load: LayoutServerLoad = async (event) => {
|
||||
if (event.locals.user) {
|
||||
return {
|
||||
user: event.locals.user,
|
||||
};
|
||||
}
|
||||
return {
|
||||
user: null,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user