mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
some fix for usernames
This commit is contained in:
@@ -300,11 +300,11 @@ export class BasicAlfrescoAuthService extends BaseAuthenticationService {
|
||||
}
|
||||
|
||||
getBpmUsername(): string {
|
||||
return this.contentAuth.authentications.basicAuth.username;
|
||||
return this.processAuth.getUsername();
|
||||
}
|
||||
|
||||
getEcmUsername(): string {
|
||||
return this.processAuth.authentications.basicAuth.username;
|
||||
return this.contentAuth.getUsername();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -79,6 +79,10 @@ export class ContentAuth {
|
||||
this.storageService.setItem('ACS_USERNAME', username);
|
||||
}
|
||||
|
||||
getUsername() {
|
||||
return this.storageService.getItem('ACS_USERNAME');
|
||||
}
|
||||
|
||||
/**
|
||||
* login Alfresco API
|
||||
* @param username: // Username to login
|
||||
|
||||
@@ -64,6 +64,10 @@ export class ProcessAuth {
|
||||
this.storageService.setItem('APS_USERNAME', username);
|
||||
}
|
||||
|
||||
getUsername() {
|
||||
return this.storageService.getItem('APS_USERNAME');
|
||||
}
|
||||
|
||||
/**
|
||||
* login Activiti API
|
||||
* @param username: // Username to login
|
||||
|
||||
Reference in New Issue
Block a user