mirror of
https://github.com/umami-software/umami.git
synced 2026-02-21 13:05:36 +01:00
Add session_data / session redis to CH.
This commit is contained in:
parent
8937602f57
commit
2e0d1697e7
21 changed files with 328 additions and 282 deletions
|
|
@ -2,7 +2,7 @@ import { canCreateUser, canViewUsers } from 'lib/auth';
|
|||
import { ROLES } from 'lib/constants';
|
||||
import { uuid } from 'lib/crypto';
|
||||
import { useAuth } from 'lib/middleware';
|
||||
import { NextApiRequestQueryBody, Roles, User } from 'lib/types';
|
||||
import { NextApiRequestQueryBody, Role, User } from 'lib/types';
|
||||
import { NextApiResponse } from 'next';
|
||||
import { badRequest, hashPassword, methodNotAllowed, ok, unauthorized } from 'next-basics';
|
||||
import { createUser, getUser, getUsers } from 'queries';
|
||||
|
|
@ -11,7 +11,7 @@ export interface UsersRequestBody {
|
|||
username: string;
|
||||
password: string;
|
||||
id: string;
|
||||
role?: Roles;
|
||||
role?: Role;
|
||||
}
|
||||
|
||||
export default async (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue