improvement: Nothing done is related to subscriptions!!!
This commit is contained in:
@@ -61,6 +61,20 @@ export class StaffController {
|
||||
return this.staffService.invite(req.user.id, organizationId, dto);
|
||||
}
|
||||
|
||||
@Post('members/:membershipId/clear-password')
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@ApiOperation({
|
||||
summary:
|
||||
'Clear a staff member password and return a setup link (owner or TAB_STAFF_EDIT; active members only)',
|
||||
})
|
||||
clearPassword(
|
||||
@Req() req: { user: { id: string; organizationId?: string } },
|
||||
@Param('membershipId') membershipId: string,
|
||||
) {
|
||||
const organizationId = this.staffService.getOrganizationIdFromUser(req.user);
|
||||
return this.staffService.clearPassword(req.user.id, organizationId, membershipId);
|
||||
}
|
||||
|
||||
@Post('members/:membershipId/invitation-link')
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@ApiOperation({
|
||||
|
||||
Reference in New Issue
Block a user