fix: AppKey揭示改为显示完整明文并留审计;追溯码链接改为直连系统设置的客户端地址
This commit is contained in:
@@ -65,10 +65,10 @@ export class SettingsController {
|
||||
@ApiBearerAuth()
|
||||
@Roles(RoleType.SUPER_ADMIN)
|
||||
@Post('tianhe/app-key/reveal')
|
||||
@ApiOperation({ summary: '查看天河链 App Key 掩码(仅返回掩码,不返回明文);用 POST 以便写入操作日志' })
|
||||
@ApiOperation({ summary: '揭示天河链 App Key 明文;用 POST 以便写入操作日志(仅超管)' })
|
||||
async revealTianheAppKey() {
|
||||
const all = await this.settingsService.getAllRaw();
|
||||
return { appKeyMasked: this.settingsService.maskSecretPublic(all.tianheAppKey || '') };
|
||||
return { appKey: all.tianheAppKey || '' };
|
||||
}
|
||||
|
||||
@ApiBearerAuth()
|
||||
|
||||
Reference in New Issue
Block a user