From ace9e449565d47ea6b54db9e91757203d26d814f Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Thu, 11 Jun 2009 14:39:03 +0000 Subject: [PATCH] Share User Console tool enhancements and fixes: - Username and password field length checks based on config values (ALFCOM-2907, ETHREEOH-1199) - Password checked against Validate Password field on Create and Update of a user (ALFCOM-2913, ALFCOM-2922) - Fix to recently broken script People API - attempting to create a user with a username that already exists did not return null but instead throw an exception (ALFCOM-2921) - Field validation correctly trims fields before validation (ALFCOM-2920) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14663 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/java/org/alfresco/repo/jscript/People.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/java/org/alfresco/repo/jscript/People.java b/source/java/org/alfresco/repo/jscript/People.java index a04d09d761..954ad2fa2f 100644 --- a/source/java/org/alfresco/repo/jscript/People.java +++ b/source/java/org/alfresco/repo/jscript/People.java @@ -256,8 +256,8 @@ public final class People extends BaseScopableProcessorExtension } person = createPerson(userName, firstName, lastName, emailAddress); - - if (password != null) + + if (person != null && password != null) { // create account for person with the userName and password mutableAuthenticationDao.createUser(userName, password.toCharArray());