Added form reset after password change
This commit is contained in:
parent
7d063fde98
commit
a2572a8a99
|
@ -27,6 +27,7 @@ export class PasswordComponent {
|
|||
|
||||
public async onSubmit() {
|
||||
this.changeSuccessfull = await this.password.changePassword(this.passwordForm.value.password);
|
||||
this.passwordForm.reset();
|
||||
setTimeout(() => this.changeSuccessfull = false, 3000);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue