mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-07 17:48:54 +00:00
#878 doc,demo and code improvements userinfo component
This commit is contained in:
@@ -105,10 +105,10 @@ export class AlfrescoAuthenticationService {
|
||||
* @returns {Observable<R>|Observable<T>}
|
||||
*/
|
||||
public logout() {
|
||||
this.removeTicket();
|
||||
return Observable.fromPromise(this.callApiLogout())
|
||||
.map(res => <any> res)
|
||||
.do(response => {
|
||||
this.removeTicket();
|
||||
return response;
|
||||
})
|
||||
.catch(this.handleError);
|
||||
|
Reference in New Issue
Block a user