Merged 5.2.N (5.2.2) to HEAD (5.2)

136902 aepure: MNT-17199 - CSV user import: if password is left blank it should be randomly generated
      Modified UserCSVUploadPost behaviour to use an empty string for password creation instead of the user's first name.
      Modified RepositoryAuthenticationDao > createUser behaviour to treat the case when the password is an empty string or null.
      Added a Unit test.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@137534 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrei Rebegea
2017-06-15 11:11:11 +00:00
parent dd2fc27840
commit 6f509c3f7f

View File

@@ -527,7 +527,7 @@ public class UserCSVUploadPost extends DeclarativeWebScript
// If no password was given, use their surname // If no password was given, use their surname
if (!user.containsKey(ContentModel.PROP_PASSWORD)) if (!user.containsKey(ContentModel.PROP_PASSWORD))
{ {
user.put(ContentModel.PROP_PASSWORD, user.get(ContentModel.PROP_LASTNAME)); user.put(ContentModel.PROP_PASSWORD, "");
} }
// Skip any user who looks like an example file heading // Skip any user who looks like an example file heading