mirror of
https://github.com/certd/certd.git
synced 2026-07-24 04:27:36 +08:00
chore: 完善审计日志
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user