mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 13:17:19 +01:00
Converted user and website settings.
This commit is contained in:
parent
4c24e54fdd
commit
b5c6194f36
59 changed files with 363 additions and 554 deletions
|
|
@ -27,7 +27,7 @@ export async function POST(request: Request, { params }: { params: Promise<{ use
|
|||
const schema = z.object({
|
||||
username: z.string().max(255),
|
||||
password: z.string().max(255),
|
||||
role: z.string().regex(/admin|user|view-only/i),
|
||||
role: z.enum(['admin', 'user', 'view-only']),
|
||||
});
|
||||
|
||||
const { auth, body, error } = await parseRequest(request, schema);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue