From bf51d554f8aa4790f9a9e75b65f93ece2da8caf5 Mon Sep 17 00:00:00 2001 From: Glen Johnson Date: Mon, 30 Jun 2008 14:44:16 +0000 Subject: [PATCH] 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 --- source/java/org/alfresco/repo/jscript/People.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/java/org/alfresco/repo/jscript/People.java b/source/java/org/alfresco/repo/jscript/People.java index 8d02860dfa..5bd686b8ea 100644 --- a/source/java/org/alfresco/repo/jscript/People.java +++ b/source/java/org/alfresco/repo/jscript/People.java @@ -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(); } }