2025-04-17 00:06:49 +08:00
|
|
|
import { BaseSettings } from "@certd/lib-server";
|
|
|
|
|
|
|
|
|
|
export type TwoFactorAuthenticator = {
|
|
|
|
|
enabled: boolean;
|
|
|
|
|
secret?: string;
|
|
|
|
|
type?: string;
|
|
|
|
|
verified?:boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class UserTwoFactorSetting extends BaseSettings {
|
|
|
|
|
static __title__ = "用户多重认证设置";
|
|
|
|
|
static __key__ = "user.two.factor";
|
|
|
|
|
|
|
|
|
|
authenticator: TwoFactorAuthenticator = {
|
|
|
|
|
enabled:false,
|
|
|
|
|
verified:false,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2025-05-25 23:38:25 +08:00
|
|
|
|
|
|
|
|
export class UserSiteMonitorSetting extends BaseSettings {
|
|
|
|
|
static __title__ = "站点监控设置";
|
|
|
|
|
static __key__ = "user.site.monitor";
|
|
|
|
|
|
|
|
|
|
notificationId?:number= 0;
|
2025-06-06 18:20:30 +08:00
|
|
|
cron?:string = undefined;
|
|
|
|
|
retryTimes?:number = 3;
|
2025-07-07 00:10:51 +08:00
|
|
|
dnsServer?:string[] = undefined;
|
2025-10-14 22:25:04 +08:00
|
|
|
certValidDays?:number = 10;
|
2025-05-25 23:38:25 +08:00
|
|
|
}
|
2025-05-31 00:45:54 +08:00
|
|
|
|
|
|
|
|
export class UserEmailSetting extends BaseSettings {
|
|
|
|
|
static __title__ = "用户邮箱设置";
|
|
|
|
|
static __key__ = "user.email";
|
|
|
|
|
|
|
|
|
|
list:string[] = [];
|
|
|
|
|
}
|