namespacing

This commit is contained in:
mrjvs
2023-10-29 15:39:46 +01:00
parent e9f8845506
commit 1f85631f55
3 changed files with 8 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import { makeSession, makeSessionToken } from '@/services/session';
import { z } from 'zod';
const registerSchema = z.object({
namespace: z.string().min(1),
name: z.string().max(500).min(1),
device: z.string().max(500).min(1),
profile: z.object({
@@ -25,6 +26,7 @@ export const manageAuthRouter = makeRouter((app) => {
await assertCaptcha(body.captchaToken);
const user = new User();
user.namespace = body.namespace;
user.name = body.name;
user.profile = body.profile;