mirror of
https://github.com/certd/certd.git
synced 2026-08-02 02:44:49 +08:00
22 lines
408 B
TypeScript
22 lines
408 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,
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|