mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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
This commit is contained in:
@@ -256,8 +256,8 @@ public final class People extends BaseScopableProcessorExtension
|
|||||||
}
|
}
|
||||||
|
|
||||||
person = createPerson(userName, firstName, lastName, emailAddress);
|
person = createPerson(userName, firstName, lastName, emailAddress);
|
||||||
|
|
||||||
if (password != null)
|
if (person != null && password != null)
|
||||||
{
|
{
|
||||||
// create account for person with the userName and password
|
// create account for person with the userName and password
|
||||||
mutableAuthenticationDao.createUser(userName, password.toCharArray());
|
mutableAuthenticationDao.createUser(userName, password.toCharArray());
|
||||||
|
Reference in New Issue
Block a user