diff --git a/src/frontend/app/notification.service.ts b/src/frontend/app/notification.service.ts index 7320855a268259104912c390a9097cec32643dc5..23d6bc6f0269b1d8005dcb70b7f63601ea7126e6 100755 --- a/src/frontend/app/notification.service.ts +++ b/src/frontend/app/notification.service.ts @@ -35,6 +35,7 @@ export class NotificationService { console.log(err); if (err.status === 401 && this.router.url !== '/home') { this.router.navigate(['/home']); + window.location.reload(true); this.error(this.lang.mustReconnect); } else if (err.status === 0 && err.statusText === 'Unknown Error') { this.error(this.lang.connectionFailed); diff --git a/src/frontend/app/profile.component.ts b/src/frontend/app/profile.component.ts index e764893f4e719d3778c738376a7645d5ac14792a..cbff836e40d75b8d56301e9e512e7c7015dc0377 100755 --- a/src/frontend/app/profile.component.ts +++ b/src/frontend/app/profile.component.ts @@ -891,7 +891,7 @@ export class ProfileComponent extends AutoCompletePlugin implements OnInit { return this.lang.passwordcomplexitySpecial + ' !'; } else { - this.firstFormGroup.controls['newPasswordCtrl'].setErrors(null) + this.firstFormGroup.controls['newPasswordCtrl'].setErrors(null); this.validPassword = true; return ''; } @@ -931,7 +931,7 @@ export class ProfileComponent extends AutoCompletePlugin implements OnInit { this.notify.success(this.lang.signsSynchronized); }, (err) => { this.loadingSign = false; - this.notify.error(err.error.errors); + this.notify.handleErrors(err); }); } }