Author: coudot
Date: 2010-10-06 11:29:36 +0200 (Wed, 06 Oct 2010)
New Revision: 146

Modified:
   self-service-password/trunk/pages/resetbyquestions.php
   self-service-password/trunk/pages/resetbytoken.php
Log:
Correct bug when changing password by token or question (fixes #288)

Modified: self-service-password/trunk/pages/resetbyquestions.php
===================================================================
--- self-service-password/trunk/pages/resetbyquestions.php      2010-09-23 
15:55:39 UTC (rev 145)
+++ self-service-password/trunk/pages/resetbyquestions.php      2010-10-06 
09:29:36 UTC (rev 146)
@@ -124,7 +124,7 @@
 
 # Check password strength
 if ( $result === "" ) {
-    $result = check_password_strength( $newpassword, $pwd_special_chars, 
$pwd_forbidden_chars, $pwd_min_length, $pwd_max_length, $pwd_min_lower, 
$pwd_min_upper, $pwd_min_digit, $pwd_min_special );
+    $result = check_password_strength( $newpassword, '', $pwd_special_chars, 
$pwd_forbidden_chars, $pwd_min_length, $pwd_max_length, $pwd_min_lower, 
$pwd_min_upper, $pwd_min_digit, $pwd_min_special );
 }
 
 # Change password

Modified: self-service-password/trunk/pages/resetbytoken.php
===================================================================
--- self-service-password/trunk/pages/resetbytoken.php  2010-09-23 15:55:39 UTC 
(rev 145)
+++ self-service-password/trunk/pages/resetbytoken.php  2010-10-06 09:29:36 UTC 
(rev 146)
@@ -123,7 +123,7 @@
 
 # Check password strength
 if ( $result === "" ) {
-    $result = check_password_strength( $newpassword, $pwd_special_chars, 
$pwd_forbidden_chars, $pwd_min_length, $pwd_max_length, $pwd_min_lower, 
$pwd_min_upper, $pwd_min_digit, $pwd_min_special );
+    $result = check_password_strength( $newpassword, '', $pwd_special_chars, 
$pwd_forbidden_chars, $pwd_min_length, $pwd_max_length, $pwd_min_lower, 
$pwd_min_upper, $pwd_min_digit, $pwd_min_special );
 }
 
 # Change password

_______________________________________________
ltb-changes mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-changes

Reply via email to