mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3255] fixed remember me behaviour (#3564)
This commit is contained in:
@@ -50,7 +50,10 @@ export class AuthenticationService {
|
||||
* @returns True if logged in, false otherwise
|
||||
*/
|
||||
isLoggedIn(): boolean {
|
||||
return !!this.alfrescoApi.getInstance().isLoggedIn();
|
||||
if (!this.isOauth() && this.cookie.isEnabled() && !this.isRememberMeSet()) {
|
||||
return false;
|
||||
}
|
||||
return this.alfrescoApi.getInstance().isLoggedIn();
|
||||
}
|
||||
|
||||
isOauth(): boolean {
|
||||
|
@@ -31,7 +31,7 @@ export class CookieService {
|
||||
}
|
||||
|
||||
document.cookie = 'test-cookie';
|
||||
return document.cookie.indexOf('test-cookie') > 0;
|
||||
return document.cookie.indexOf('test-cookie') >= 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user