mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-07 20:10:03 +03:00
Fixed issue where after resetting the DB, admin would have to be registered twice
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user