[ADF-3255] fixed remember me behaviour (#3564)

This commit is contained in:
Vito
2018-07-05 23:22:16 +01:00
committed by Eugenio Romano
parent 65ac1d37c4
commit dc4d9e59e6
2 changed files with 5 additions and 2 deletions

View File

@@ -50,7 +50,10 @@ export class AuthenticationService {
* @returns True if logged in, false otherwise * @returns True if logged in, false otherwise
*/ */
isLoggedIn(): boolean { isLoggedIn(): boolean {
return !!this.alfrescoApi.getInstance().isLoggedIn(); if (!this.isOauth() && this.cookie.isEnabled() && !this.isRememberMeSet()) {
return false;
}
return this.alfrescoApi.getInstance().isLoggedIn();
} }
isOauth(): boolean { isOauth(): boolean {

View File

@@ -31,7 +31,7 @@ export class CookieService {
} }
document.cookie = 'test-cookie'; document.cookie = 'test-cookie';
return document.cookie.indexOf('test-cookie') > 0; return document.cookie.indexOf('test-cookie') >= 0;
} }
/** /**