This commit is contained in:
Edouard DUPIN 2022-06-06 15:01:21 +02:00
parent 783ccf091a
commit 5f8fd477e0
2 changed files with 6 additions and 3 deletions

View File

@ -96,9 +96,11 @@ export class UserService {
let token = self.storageService.getSession(self.cookiesToken); let token = self.storageService.getSession(self.cookiesToken);
// TODO: check validity of th eToken: // TODO: check validity of th eToken:
if (self.isTokenUpToDate(token)) { if (self.isTokenUpToDate(token)) {
self.startSession(token, rememberMe).finally(() => { self.startSession(token, rememberMe).then(() => {
resolve(); resolve();
}) }).catch(() => {
resolve();
});
} else { } else {
console.log(`Get previous connection ... `); console.log(`Get previous connection ... `);
if(rememberMe) { if(rememberMe) {

View File

@ -17,4 +17,5 @@ export const environment = {
ssoSignOut: 'http://192.168.1.156/karso/signout/karideo/', ssoSignOut: 'http://192.168.1.156/karso/signout/karideo/',
frontBaseUrl: '', frontBaseUrl: '',
apiMode: 'REWRITE' apiMode: 'REWRITE'
}; };