feat: 追溯码客户端预览(TOTP式令牌保护,不激活不计数,可切换激活状态预览)
This commit is contained in:
@@ -62,6 +62,15 @@ export class SettingsController {
|
||||
return { userId, address, userKeyMasked: this.settingsService.maskSecretPublic(userKey) };
|
||||
}
|
||||
|
||||
@ApiBearerAuth()
|
||||
@Roles(RoleType.SUPER_ADMIN)
|
||||
@Post('tianhe/app-key/reveal')
|
||||
@ApiOperation({ summary: '查看天河链 App Key 掩码(仅返回掩码,不返回明文);用 POST 以便写入操作日志' })
|
||||
async revealTianheAppKey() {
|
||||
const all = await this.settingsService.getAllRaw();
|
||||
return { appKeyMasked: this.settingsService.maskSecretPublic(all.tianheAppKey || '') };
|
||||
}
|
||||
|
||||
@ApiBearerAuth()
|
||||
@Roles(RoleType.SUPER_ADMIN)
|
||||
@Post('tianhe/identity/reveal')
|
||||
|
||||
Reference in New Issue
Block a user