mirror of
https://github.com/ershisan99/coolify.git
synced 2026-01-28 12:34:36 +00:00
feat: Registration page
This commit is contained in:
@@ -4,10 +4,10 @@ import { ErrorHandler } from '$lib/database';
|
||||
import type { RequestHandler } from '@sveltejs/kit';
|
||||
|
||||
export const post: RequestHandler = async (event) => {
|
||||
const { email, password } = await event.request.json();
|
||||
const { email, password, isLogin } = await event.request.json();
|
||||
|
||||
try {
|
||||
const { body } = await db.login({ email, password });
|
||||
const { body } = await db.login({ email, password, isLogin });
|
||||
event.locals.session.data = body;
|
||||
return {
|
||||
status: 200
|
||||
|
||||
Reference in New Issue
Block a user