fix document 500 error and fix users tabel for bot
This commit is contained in:
@@ -142,6 +142,12 @@ export class AuthGrpcController {
|
||||
return { users };
|
||||
}
|
||||
|
||||
@GrpcMethod('AdminService', 'ListBotAccounts')
|
||||
async listBotAccounts(command: { search?: string }) {
|
||||
const users = await this.admin.listBotAccounts(command.search);
|
||||
return { users };
|
||||
}
|
||||
|
||||
@GrpcMethod('AdminService', 'SuspendUser')
|
||||
suspendUser(command: { userId: string }) {
|
||||
return this.admin.suspendUser(command.userId);
|
||||
@@ -461,6 +467,11 @@ export class AuthGrpcController {
|
||||
return this.totp.disable(command.userId, command.code);
|
||||
}
|
||||
|
||||
@GrpcMethod('SecurityService', 'AdminDisableTotp')
|
||||
adminDisableTotp(command: { actorUserId: string; userId: string }) {
|
||||
return this.totp.adminDisable(command.actorUserId, command.userId);
|
||||
}
|
||||
|
||||
@GrpcMethod('SecurityService', 'SetupPin')
|
||||
setupPin(command: { userId: string; pin: string }) {
|
||||
return this.pin.setupPin(command.userId, command.pin);
|
||||
|
||||
Reference in New Issue
Block a user