change user to uuid
This commit is contained in:
parent
07f8e2dbcb
commit
f89483f878
46 changed files with 146 additions and 151 deletions
|
@ -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: "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue