mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-29 02:49:55 -05:00
fix(auth): set default data to empty when initializing password reset
Resolves https://github.com/go-vikunja/vikunja/issues/776
This commit is contained in:
@@ -7,7 +7,7 @@ export default class PasswordResetModel extends AbstractModel<IPasswordReset> im
|
||||
newPassword = ''
|
||||
email = ''
|
||||
|
||||
constructor(data: Partial<IPasswordReset>) {
|
||||
constructor(data: Partial<IPasswordReset> = {}) {
|
||||
super()
|
||||
this.assignData(data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user