lint
This commit is contained in:
parent
46b630de82
commit
b60331ca08
@ -59,7 +59,7 @@ export abstract class IqserUserService<
|
|||||||
|
|
||||||
async logout() {
|
async logout() {
|
||||||
await this._cacheApiService.wipeCaches();
|
await this._cacheApiService.wipeCaches();
|
||||||
if(await this._keycloakService.isLoggedIn()) {
|
if (await this._keycloakService.isLoggedIn()) {
|
||||||
await this._keycloakService.logout();
|
await this._keycloakService.logout();
|
||||||
}
|
}
|
||||||
window.location.href = this._keycloakService.getKeycloakInstance().createLoginUrl({
|
window.location.href = this._keycloakService.getKeycloakInstance().createLoginUrl({
|
||||||
@ -67,7 +67,7 @@ export abstract class IqserUserService<
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async redirectToLogin(){
|
async redirectToLogin() {
|
||||||
await this._cacheApiService.wipeCaches();
|
await this._cacheApiService.wipeCaches();
|
||||||
window.location.href = this._keycloakService.getKeycloakInstance().createLoginUrl({
|
window.location.href = this._keycloakService.getKeycloakInstance().createLoginUrl({
|
||||||
redirectUri: window.location.origin + this._baseHref,
|
redirectUri: window.location.origin + this._baseHref,
|
||||||
@ -89,7 +89,7 @@ export abstract class IqserUserService<
|
|||||||
throw new Error('No user id');
|
throw new Error('No user id');
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("Load KC profile failed");
|
console.log('Load KC profile failed');
|
||||||
await this.redirectToLogin();
|
await this.redirectToLogin();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user