mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 13:34:55 +00:00
Add permission and role management features
This commit is contained in:
@ -134,13 +134,12 @@ export class UserAuthService {
|
||||
isLoggedOut: false,
|
||||
}),
|
||||
]);
|
||||
|
||||
const res = await this.authService.login({
|
||||
email: user.email,
|
||||
userId: user.uuid,
|
||||
uuid: user.uuid,
|
||||
roles: user?.roles?.map((role) => {
|
||||
return { uuid: role.uuid, type: role.roleType.type };
|
||||
}),
|
||||
role: user.roleType,
|
||||
sessionId: session[1].uuid,
|
||||
});
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user