Skip to content
Snippets Groups Projects
Verified Commit ae542d5a authored by Damien's avatar Damien
Browse files

FIX #10391 TIME 0:45 Reload page when 401

parent ba89f513
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ export class NotificationService { ...@@ -35,6 +35,7 @@ export class NotificationService {
console.log(err); console.log(err);
if (err.status === 401 && this.router.url !== '/home') { if (err.status === 401 && this.router.url !== '/home') {
this.router.navigate(['/home']); this.router.navigate(['/home']);
window.location.reload(true);
this.error(this.lang.mustReconnect); this.error(this.lang.mustReconnect);
} else if (err.status === 0 && err.statusText === 'Unknown Error') { } else if (err.status === 0 && err.statusText === 'Unknown Error') {
this.error(this.lang.connectionFailed); this.error(this.lang.connectionFailed);
......
...@@ -891,7 +891,7 @@ export class ProfileComponent extends AutoCompletePlugin implements OnInit { ...@@ -891,7 +891,7 @@ export class ProfileComponent extends AutoCompletePlugin implements OnInit {
return this.lang.passwordcomplexitySpecial + ' !'; return this.lang.passwordcomplexitySpecial + ' !';
} else { } else {
this.firstFormGroup.controls['newPasswordCtrl'].setErrors(null) this.firstFormGroup.controls['newPasswordCtrl'].setErrors(null);
this.validPassword = true; this.validPassword = true;
return ''; return '';
} }
...@@ -931,7 +931,7 @@ export class ProfileComponent extends AutoCompletePlugin implements OnInit { ...@@ -931,7 +931,7 @@ export class ProfileComponent extends AutoCompletePlugin implements OnInit {
this.notify.success(this.lang.signsSynchronized); this.notify.success(this.lang.signsSynchronized);
}, (err) => { }, (err) => {
this.loadingSign = false; this.loadingSign = false;
this.notify.error(err.error.errors); this.notify.handleErrors(err);
}); });
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment