mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix login oauth cookie problem (#3508)
* fix login don't check the cookie in oauth2 * fix test * check boolean storage
This commit is contained in:
@@ -164,7 +164,7 @@ export class AuthenticationService {
|
||||
* @returns True if logged in, false otherwise
|
||||
*/
|
||||
isEcmLoggedIn(): boolean {
|
||||
if (this.cookie.isEnabled() && !this.isRememberMeSet()) {
|
||||
if (!this.isOauth() && this.cookie.isEnabled() && !this.isRememberMeSet()) {
|
||||
return false;
|
||||
}
|
||||
return this.alfrescoApi.getInstance().isEcmLoggedIn();
|
||||
@@ -175,7 +175,7 @@ export class AuthenticationService {
|
||||
* @returns True if logged in, false otherwise
|
||||
*/
|
||||
isBpmLoggedIn(): boolean {
|
||||
if (this.cookie.isEnabled() && !this.isRememberMeSet()) {
|
||||
if (!this.isOauth() && this.cookie.isEnabled() && !this.isRememberMeSet()) {
|
||||
return false;
|
||||
}
|
||||
return this.alfrescoApi.getInstance().isBpmLoggedIn();
|
||||
|
Reference in New Issue
Block a user