mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
Fix unit test '[ECM] should return a ticket undefined after logout'
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
import { Injectable, Injector } from '@angular/core';
|
||||
import { OidcAuthenticationService } from './oidc-authentication.service';
|
||||
import { BasicAlfrescoAuthService } from '../basic-auth/basic-alfresco-auth.service';
|
||||
import { Observable, of } from 'rxjs';
|
||||
import { Observable, from } from 'rxjs';
|
||||
import { BaseAuthenticationService } from './base-authentication.service';
|
||||
import { AppConfigService } from '../../app-config';
|
||||
import { CookieService, LogService } from '../../common';
|
||||
@@ -70,7 +70,7 @@ export class AuthenticationService extends BaseAuthenticationService {
|
||||
if (this.isOauth()) {
|
||||
return this.oidcAuthenticationService.logout();
|
||||
} else {
|
||||
return of(this.basicAlfrescoAuthService.logout());
|
||||
return from(this.basicAlfrescoAuthService.logout());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user