added jitsi api + improvements
This commit is contained in:
@@ -29,7 +29,7 @@ export class AuthGuard implements CanActivate {
|
||||
return this.authService.getAuth().then(response => {
|
||||
return true;
|
||||
}).catch(function(error) {
|
||||
return that.router.parseUrl('/unavailable');
|
||||
return that.router.parseUrl('/unavailable?target=' + state.url);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -44,11 +44,9 @@ export class AuthenticatedGuard implements CanActivate {
|
||||
const that = this;
|
||||
return this.authService.getAuth().then((data: any) => {
|
||||
if(!data.authenticated) {
|
||||
this.router.navigateByUrl('/login');
|
||||
return false;
|
||||
return that.router.parseUrl('/login?target=' + state.url);
|
||||
}
|
||||
|
||||
|
||||
this.profileService.get(["locale", "darkTheme"]).subscribe((profileFields: any) => {
|
||||
let updateLocale = false;
|
||||
let darktheme = 'false';
|
||||
@@ -76,7 +74,7 @@ export class AuthenticatedGuard implements CanActivate {
|
||||
|
||||
return true;
|
||||
}).catch(function(error) {
|
||||
return that.router.parseUrl('/unavailable');
|
||||
return that.router.parseUrl('/unavailable?target=' + state.url);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -96,7 +94,7 @@ export class AnonymousGuard implements CanActivate {
|
||||
}
|
||||
return true;
|
||||
}).catch(function(error) {
|
||||
return that.router.parseUrl('/unavailable');
|
||||
return that.router.parseUrl('/unavailable?target=' + state.url);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user