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:
Glen Johnson 2008-06-30 14:44:16 +00:00
parent c7a2bdc8cb
commit bf51d554f8

View File

@ -174,6 +174,13 @@ public final class People extends BaseScopableProcessorExtension
// password // password
mutableAuthenticationDao.createUser(userName, password); mutableAuthenticationDao.createUser(userName, password);
mutableAuthenticationDao.setEnabled(userName, setAccountEnabled); 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();
} }
} }