vikunja-frontend/src/models/passwordUpdate.ts

16 lines
384 B
TypeScript
Raw Normal View History

import AbstractModel, { type IAbstract } from '@/models/abstractModel'
export interface IPasswordUpdate extends IAbstract {
2022-06-23 03:22:21 +02:00
newPassword: string
oldPassword: string
2022-07-21 00:42:36 +02:00
}
export default class PasswordUpdateModel extends AbstractModel implements IPasswordUpdate {
newPassword = ''
oldPassword = ''
2022-06-23 03:22:21 +02:00
constructor(data: Partial<IPasswordUpdate>) {
super()
this.assignData(data)
}
}