Edit login suoerAdmin
This commit is contained in:
@@ -11,7 +11,8 @@ export type PlatformJwtPayload = {
|
||||
|
||||
export type PlatformActor = {
|
||||
platformAdminId: string;
|
||||
email: string;
|
||||
mobile: string | null;
|
||||
email: string | null;
|
||||
fullName: string;
|
||||
};
|
||||
|
||||
@@ -39,6 +40,7 @@ export class PlatformJwtStrategy extends PassportStrategy(
|
||||
where: { id: payload.sub },
|
||||
select: {
|
||||
id: true,
|
||||
mobile: true,
|
||||
email: true,
|
||||
fullName: true,
|
||||
isActive: true,
|
||||
@@ -49,6 +51,7 @@ export class PlatformJwtStrategy extends PassportStrategy(
|
||||
}
|
||||
return {
|
||||
platformAdminId: admin.id,
|
||||
mobile: admin.mobile,
|
||||
email: admin.email,
|
||||
fullName: admin.fullName,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user