Index: lams_admin/conf/language/lams/ApplicationResources.properties =================================================================== diff -u -red9d2012f519a49948d1916347f9e7dc2b5b7b72 -rb4832c8bcb4683af57e8aaad5612e193af6f3ef0 --- lams_admin/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision ed9d2012f519a49948d1916347f9e7dc2b5b7b72) +++ lams_admin/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision b4832c8bcb4683af57e8aaad5612e193af6f3ef0) @@ -537,7 +537,7 @@ label.password.min.length =must be at least {0} characters long label.password.old.must.entered =Old password must be entered label.password.symbols.allowed =Only these symbols are allowed -label.password.restrictions =Password must follow the restrictions shown above +label.password.restrictions =Password must follow the restrictions shown label.password.must.contain =Password must contain label.password.must.ucase =at least 1 upper case letter label.password.must.lcase =at least 1 lower case letter Index: lams_admin/src/java/org/lamsfoundation/lams/admin/service/ImportService.java =================================================================== diff -u -rfebc5ec394566f98439ce776a0be320b34310b0a -rb4832c8bcb4683af57e8aaad5612e193af6f3ef0 --- lams_admin/src/java/org/lamsfoundation/lams/admin/service/ImportService.java (.../ImportService.java) (revision febc5ec394566f98439ce776a0be320b34310b0a) +++ lams_admin/src/java/org/lamsfoundation/lams/admin/service/ImportService.java (.../ImportService.java) (revision b4832c8bcb4683af57e8aaad5612e193af6f3ef0) @@ -20,7 +20,6 @@ * **************************************************************** */ - package org.lamsfoundation.lams.admin.service; import java.io.IOException; @@ -242,7 +241,7 @@ Organisation org = new Organisation(); String[] args = new String[1]; - String name = StringUtils.substring(parseStringCell(row.getCell(ImportService.NAME)),0,240); + String name = StringUtils.substring(parseStringCell(row.getCell(ImportService.NAME)), 0, 240); //validate organisation name if (StringUtils.isBlank(name)) { @@ -520,6 +519,11 @@ hasError = true; return null; } + if (!ValidationUtil.isPasswordValueValid(password, password)) { + rowResult.add(messageService.getMessage("label.password.restrictions")); + hasError = true; + return null; + } String salt = HashUtil.salt(); password = HashUtil.sha256(password, salt); user.setSalt(salt); Index: lams_admin/web/import/importexcel.jsp =================================================================== diff -u -radd7948dbdf9451fb5bb7839e22d2f22ca8b54f1 -rb4832c8bcb4683af57e8aaad5612e193af6f3ef0 --- lams_admin/web/import/importexcel.jsp (.../importexcel.jsp) (revision add7948dbdf9451fb5bb7839e22d2f22ca8b54f1) +++ lams_admin/web/import/importexcel.jsp (.../importexcel.jsp) (revision b4832c8bcb4683af57e8aaad5612e193af6f3ef0) @@ -1,44 +1,95 @@ <%@ include file="/taglibs.jsp"%> -<%@ page import="org.lamsfoundation.lams.admin.service.IImportService" %> +<%@ page import="org.lamsfoundation.lams.admin.service.IImportService"%> +<%@ page import="org.lamsfoundation.lams.util.Configuration"%> +<%@ page import="org.lamsfoundation.lams.util.ConfigurationKeys"%> +<%=Configuration.get(ConfigurationKeys.PASSWORD_POLICY_MINIMUM_CHARACTERS)%> +<%=Configuration.get(ConfigurationKeys.PASSWORD_POLICY_UPPERCASE)%> +<%=Configuration.get(ConfigurationKeys.PASSWORD_POLICY_LOWERCASE)%> +<%=Configuration.get(ConfigurationKeys.PASSWORD_POLICY_NUMERICS)%> +<%=Configuration.get(ConfigurationKeys.PASSWORD_POLICY_SYMBOLS)%> + -

+

+ +

-

+ +

+

-

+
+ + : + + +
+

+ +

- - + + - - - - - -
-
- -   -
+ + + + + +
+
+ + + + + + +   +
\ No newline at end of file