16 lines
291 B
TypeScript
16 lines
291 B
TypeScript
// SPDX-FileCopyrightText: 2023 Marlon W (Mawoka)
|
|
//
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
import { redirect } from '@sveltejs/kit';
|
|
|
|
export const load = async ({ parent }) => {
|
|
const { email } = await parent();
|
|
if (email) {
|
|
throw redirect(302, '/dashboard');
|
|
}
|
|
return {
|
|
email
|
|
};
|
|
};
|