vikunja-frontend/src/models/totp.ts
2022-09-05 17:57:20 +02:00

21 lines
No EOL
359 B
TypeScript

import AbstractModel, { type IAbstract } from './abstractModel'
export interface ITotp extends IAbstract {
secret: string
enabled: boolean
url: string
}
export default class TotpModel extends AbstractModel implements ITotp{
secret!: string
enabled!: boolean
url!: string
defaults() {
return {
secret: '',
enabled: false,
url: '',
}
}
}