From 0d469ae2b1daf93cc47f4e688f6f54dd02c1a9d9 Mon Sep 17 00:00:00 2001 From: David Kullmann Date: Fri, 11 Feb 2011 10:36:56 -0500 Subject: [PATCH 1/2] Fixed a bug where if $openIdAuthData was set but empty the plugin wouldn't show the registration form. Signed-off-by: David Kullmann --- views/users/register.ctp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/users/register.ctp b/views/users/register.ctp index 308b6c1a6..5aa824bd4 100644 --- a/views/users/register.ctp +++ b/views/users/register.ctp @@ -14,7 +14,7 @@
Form->create($model, array('url' => array('action'=>'register'))); echo $this->Form->input('username', array( 'error' => array( From ebc5391259dafc0437b29432cfc6af2759f12933 Mon Sep 17 00:00:00 2001 From: David Kullmann Date: Fri, 11 Feb 2011 10:37:41 -0500 Subject: [PATCH 2/2] Fixed a bug where minimum password length was 4 but error message said 8. Set both to 6 since that was in the middle, and since many of my passwords are 6 letters... Signed-off-by: David Kullmann --- models/user.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/user.php b/models/user.php index 49d19a89b..e93bd6314 100644 --- a/models/user.php +++ b/models/user.php @@ -109,8 +109,8 @@ public function __construct($id = false, $table = null, $ds = null) { 'message' => __d('users', 'This email is already in use.', true))), 'passwd' => array( 'to_short' => array( - 'rule' => array('minLength', '4'), - 'message' => __d('users', 'The password must have at least 8 characters.', true)), + 'rule' => array('minLength', '6'), + 'message' => __d('users', 'The password must have at least 6 characters.', true)), 'required' => array( 'rule' => 'notEmpty', 'message' => __d('users', 'Please enter a password.', true))),