2022-08-14 12:15:09 +02:00
|
|
|
import AbstractModel, { type IAbstract } from './abstractModel'
|
2020-04-18 01:46:07 +02:00
|
|
|
|
2022-08-14 12:15:09 +02:00
|
|
|
export interface ITotp extends IAbstract {
|
2022-06-23 03:22:21 +02:00
|
|
|
secret: string
|
|
|
|
enabled: boolean
|
|
|
|
url: string
|
2022-07-21 00:42:36 +02:00
|
|
|
}
|
|
|
|
|
2022-08-14 12:15:45 +02:00
|
|
|
export default class TotpModel extends AbstractModel implements ITotp {
|
|
|
|
secret = ''
|
|
|
|
enabled = false
|
|
|
|
url = ''
|
2022-06-23 03:22:21 +02:00
|
|
|
|
2022-08-14 12:15:45 +02:00
|
|
|
constructor(data: Partial<ITotp>) {
|
|
|
|
super()
|
|
|
|
this.assignData(data)
|
2020-04-18 01:46:07 +02:00
|
|
|
}
|
|
|
|
}
|