This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/models/totp.ts

21 lines
359 B
TypeScript
Raw Normal View History

import AbstractModel, { type IAbstract } from './abstractModel'
export interface ITotp extends IAbstract {
2022-06-23 01:22:21 +00:00
secret: string
enabled: boolean
url: string
2022-07-20 22:42:36 +00:00
}
export default class TotpModel extends AbstractModel implements ITotp{
secret!: string
enabled!: boolean
url!: string
2022-06-23 01:22:21 +00:00
defaults() {
return {
secret: '',
enabled: false,
url: '',
}
}
}