From 923ee5a1122807fef3b7e955ecb5ddaa2fbf10c4 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Wed, 11 Jul 2007 02:32:13 +0200 Subject: [PATCH] [svn r12734] Add "required" rule to field "password confirmation" in registration form --- main/auth/inscription.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/auth/inscription.php b/main/auth/inscription.php index 535d95b5a6..c671bf10fe 100644 --- a/main/auth/inscription.php +++ b/main/auth/inscription.php @@ -1,5 +1,5 @@ addRule('username', get_lang('UserTaken'), 'username_available'); $form->addElement('password', 'pass1', get_lang('Pass'), array('size' => 40)); $form->addElement('password', 'pass2', get_lang('Confirmation'), array('size' => 40)); $form->addRule('pass1', get_lang('ThisFieldIsRequired'), 'required'); +$form->addRule('pass2', get_lang('ThisFieldIsRequired'), 'required'); $form->addRule(array('pass1', 'pass2'), get_lang('PassTwo'), 'compare'); if (CHECK_PASS_EASY_TO_FIND) $form->addRule('password1', get_lang('PassTooEasy').': '.api_generate_password(), 'callback', 'api_check_password');