mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
REPO-1503: allow setting of password
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131939 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -297,8 +297,8 @@ public class PeopleImpl implements People
|
||||
Map<QName, Serializable> props = person.toProperties();
|
||||
|
||||
MutableAuthenticationService mas = (MutableAuthenticationService) authenticationService;
|
||||
// TODO: very temporary code, until REPO-1503 (set password) implemented.
|
||||
mas.createAuthentication(person.getUserName(), UUID.randomUUID().toString().toCharArray());
|
||||
String password = person.getPassword() == null ? UUID.randomUUID().toString() : person.getPassword();
|
||||
mas.createAuthentication(person.getUserName(), password.toCharArray());
|
||||
mas.setAuthenticationEnabled(person.getUserName(), person.isEnabled());
|
||||
NodeRef nodeRef = personService.createPerson(props);
|
||||
|
||||
|
Reference in New Issue
Block a user