chore: 完善审计日志

This commit is contained in:
xiaojunnuo
2026-07-19 00:49:38 +08:00
parent eee22154e3
commit ce4839bd80
14 changed files with 43 additions and 29 deletions
@@ -47,7 +47,7 @@ export class UserTwoFactorSettingController extends BaseController {
}
await this.service.saveSetting(userId, null, setting);
this.auditLog({ content: "保存了双因子认证设置" });
this.auditLog({ content: `保存了双因子认证设置 ${setting.authenticator.enabled ? "启用" : "禁用"}` });
return this.ok({});
}
@@ -68,7 +68,7 @@ export class UserTwoFactorSettingController extends BaseController {
userId,
verifyCode: bean.verifyCode,
});
this.auditLog({ content: "保存了验证器设置" });
this.auditLog({ content: `保存了验证器设置` });
return this.ok();
}