mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-16 17:55:15 +00:00
Fix People.createPerson(...) so that initial generated password is added as property to created person node (this is, if flag was set for an account to be automatically created for person)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9596 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
parent
c7a2bdc8cb
commit
bf51d554f8
@ -174,6 +174,13 @@ public final class People extends BaseScopableProcessorExtension
|
||||
// password
|
||||
mutableAuthenticationDao.createUser(userName, password);
|
||||
mutableAuthenticationDao.setEnabled(userName, setAccountEnabled);
|
||||
|
||||
// TODO glen johnson at alfresco dot com -
|
||||
// find a more secure way of making generated password
|
||||
// available. I need to make it available for the invite
|
||||
// workflow/service
|
||||
person.getProperties().put("generatedPassword", new String(password));
|
||||
person.save();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user