|
|
|
@ -61,18 +61,24 @@ export class ProfileComponent implements OnInit {
|
|
|
|
|
user.password = this.passwordNew.value;
|
|
|
|
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
this.authService.refreshToken().subscribe(
|
|
|
|
|
() => {
|
|
|
|
|
this.userService
|
|
|
|
|
.updateUser(user)
|
|
|
|
|
.subscribe(
|
|
|
|
|
data => {
|
|
|
|
|
this.snackBar.openSnackBar("Das Passwort wurde erfolgreich aktualisiert", "Ok");
|
|
|
|
|
console.log(JSON.stringify(data));
|
|
|
|
|
this.password.reset();
|
|
|
|
|
this.pwGroup.reset();
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
.add(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|