Index: moodle/lang/en_utf8/auth.php
--- moodle/lang/en_utf8/auth.php Base (1.30.2.21)
+++ moodle/lang/en_utf8/auth.php Locally Modified (Based On 1.30.2.21)
@@ -417,4 +417,10 @@
 $string['getanaudiocaptcha'] = 'Get an audio CAPTCHA';
 $string['getanimagecaptcha'] = 'Get an image CAPTCHA';
 $string['recaptcha'] = 'reCAPTCHA';
+$string['informminpasswordlength'] = 'at least $a characters';
+$string['informminpassworddigits'] = 'at least $a digit(s)';
+$string['informminpasswordlower'] = 'at least $a lower case letter(s)';
+$string['informminpasswordnonalphanum'] = 'at least $a non-alphanumeric character(s)';
+$string['informminpasswordupper'] = 'at least $a upper case letter(s)';
+$string['informpasswordpolicy'] = 'Your password must have $a';
 ?>
Index: moodle/lib/weblib.php
--- moodle/lib/weblib.php Base (1.970.2.151)
+++ moodle/lib/weblib.php Locally Modified (Based On 1.970.2.151)
@@ -7113,5 +7117,40 @@
     return $authtitle;
 }
 
+ /**
+ * Print password policy.
+ * @uses $CFG
+ * @return string
+ */
+ function print_password_policy(){
+     global $CFG;
+     $messages = array();
+     
+     if(!empty($CFG->passwordpolicy)){
+            $messages[] = get_string('informminpasswordlength', 'auth', $CFG->minpasswordlength);
+            if(!empty($CFG->minpassworddigits)){
+                $messages[] = get_string('informminpassworddigits', 'auth', $CFG->minpassworddigits);
+            }
+            if(!empty($CFG->minpasswordlower)){
+                $messages[] = get_string('informminpasswordlower', 'auth', $CFG->minpasswordlower);
+            }
+            if(!empty($CFG->minpasswordupper)){
+                $messages[] = get_string('informminpasswordupper', 'auth', $CFG->minpasswordupper);
+            }
+            if(!empty($CFG->minpasswordnonalphanum)){
+                $messages[] = get_string('informminpasswordnonalphanum', 'auth', $CFG->minpasswordnonalphanum);
+            }
+            
+            $lastmessage = new stdClass;
+            $lastmessage->one = '';
+            $lastmessage->two = array_pop($messages);
+            $messages[] = get_string('and','moodle',$lastmessage);
+            $message = join(', ', $messages);
+            $message = '<div class="fitemtitle">&nbsp;</div><div class="felement ftext">'. get_string('informpasswordpolicy', 'auth', $message) . '</div>';
+        }
+        return $message;
+                
+ }
+
 // vim:autoindent:expandtab:shiftwidth=4:tabstop=4:tw=140:
 ?>
