change user to uuid

This commit is contained in:
Julian Krauser 2025-01-29 08:53:49 +01:00
parent 07f8e2dbcb
commit f89483f878
46 changed files with 146 additions and 151 deletions

View file

@ -50,7 +50,7 @@ export abstract class JWTHelper {
});
}
static async buildToken(id: number): Promise<string> {
static async buildToken(id: string): Promise<string> {
let { firstname, lastname, mail, username, isOwner } = await UserService.getById(id);
let userPermissions = await UserPermissionService.getByUser(id);
let userPermissionStrings = userPermissions.map((e) => e.permission);
@ -86,7 +86,7 @@ export abstract class JWTHelper {
let permissionObject = PermissionHelper.convertToObject(webapiPermissionStrings);
let jwtData: JWTToken = {
userId: id,
userId: id.toString(),
mail: "",
username: title,
firstname: "",