aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-10 17:18:16 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-10 17:18:16 +0000
commit38cf151563563dd8f5fe8b5dbcda1d800997d9f6 (patch)
tree2b6992e05951e134f9f655479a2fad78f89de9f3 /engine/lib
parent29b4b91a9a220bd462eab6320cf16a2ddf4be112 (diff)
downloadelgg-38cf151563563dd8f5fe8b5dbcda1d800997d9f6.tar.gz
elgg-38cf151563563dd8f5fe8b5dbcda1d800997d9f6.tar.bz2
using config variable for minimum password length
git-svn-id: http://code.elgg.org/elgg/trunk@7047 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/users.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index c9add2541..45499b27d 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -953,7 +953,9 @@ function validate_username($username) {
* @throws RegistrationException on invalid
*/
function validate_password($password) {
- if (strlen($password) < 6) {
+ global $CONFIG;
+
+ if (strlen($password) < $CONFIG->min_password_length) {
throw new RegistrationException(elgg_echo('registration:passwordtooshort'));
}