Added form reset after password change

This commit is contained in:
Lukas Metzger 2018-04-08 16:58:41 +02:00
parent 7d063fde98
commit a2572a8a99

View file

@ -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);
}
}