Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-16022: Enforce special character requirements on passwords with length less than 15 (#741)

Timothy Potter07424ed1c59c
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 8f8f393851a..cf7bc786f1d 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -719,6 +719,8 @@ Bug Fixes
* SOLR-16009: Force Calcite's Rel simplify config flag to false to avoid erasing filters that are meaningful to Solr,
but look like nonsense to Calcite, such as AND'd filters on the same multi-valued field (Timothy Potter, Kiran Chitturi)
+* SOLR-16022: Enforce special character requirements on passwords with length less than 15 (Timothy Potter)
+
================== 8.11.1 ==================
Bug Fixes
diff --git a/solr/webapp/web/js/angular/controllers/security.js b/solr/webapp/web/js/angular/controllers/security.js
index 6c7223d3ca3..d1b09916a77 100644
--- a/solr/webapp/web/js/angular/controllers/security.js
+++ b/solr/webapp/web/js/angular/controllers/security.js
@@ -412,8 +412,8 @@ solrAdminApp.controller('SecurityController', function ($scope, $timeout, $cooki
return false;
}
- if (!password.match(strongPasswordRegex)) {
- $scope.validationError = "Password not strong enough! Must contain at least one lowercase letter, one uppercase letter, one digit, and one of these special characters: !@#$%^&*_-[]()";
+ if (password.length < 15 && !password.match(strongPasswordRegex)) {
+ $scope.validationError = "Password not strong enough! Must have length >= 15 or contain at least one lowercase letter, one uppercase letter, one digit, and one of these special characters: !@#$%^&*_-[]()";
return false;
}