Fixed issue where after resetting the DB, admin would have to be registered twice

pull/911/head
Tzahi12345 3 years ago
parent 4f54e408a5
commit 427eecf214

@ -734,7 +734,7 @@ export class PostsService implements CanActivate {
this.afterLogin(res['user'], res['token'], res['permissions'], res['available_permissions']);
}
}, err => {
if (err.status === 401) {
if (err === 'Unauthorized') {
this.sendToLogin();
this.token = null;
this.resetHttpParams();

Loading…
Cancel
Save