mirror of
https://github.com/certd/certd.git
synced 2026-07-30 17:27:46 +08:00
29 lines
583 B
TypeScript
29 lines
583 B
TypeScript
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,
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export class UserSiteMonitorSetting extends BaseSettings {
|
|
static __title__ = "站点监控设置";
|
|
static __key__ = "user.site.monitor";
|
|
|
|
notificationId?:number= 0;
|
|
}
|