1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 22:27:34 +02:00

Should fix Issue #64 (usersettings password issue)

This commit is contained in:
Cameron
2012-12-22 00:59:32 -08:00
parent 918c2bfc34
commit 6d8dbeda57
2 changed files with 3 additions and 3 deletions

View File

@@ -91,7 +91,7 @@ class usersettings_shortcodes extends e_shortcode
if(!isset($pref['auth_method']) || $pref['auth_method'] == '' || $pref['auth_method'] == 'e107' || $pref['auth_method'] == '>e107') if(!isset($pref['auth_method']) || $pref['auth_method'] == '' || $pref['auth_method'] == 'e107' || $pref['auth_method'] == '>e107')
{ {
$options = array('size' => 40,'title'=>LAN_USET_23); $options = array('size' => 40,'title'=>LAN_USET_23, 'required'=>0);
return e107::getForm()->password('password1', '', 20, $options); return e107::getForm()->password('password1', '', 20, $options);
} }
@@ -106,7 +106,7 @@ class usersettings_shortcodes extends e_shortcode
if(!isset($pref['auth_method']) || $pref['auth_method'] == '' || $pref['auth_method'] == 'e107' || $pref['auth_method'] == '>e107') if(!isset($pref['auth_method']) || $pref['auth_method'] == '' || $pref['auth_method'] == 'e107' || $pref['auth_method'] == '>e107')
{ {
$options = array('size' => 40,'title'=>LAN_USET_23); $options = array('size' => 40,'title'=>LAN_USET_23, 'required'=>0);
return e107::getForm()->password('password2', '', 20, $options); return e107::getForm()->password('password2', '', 20, $options);
} }

View File

@@ -737,7 +737,7 @@ class e_form
} }
$options['pattern'] = vartrue($options['pattern'],'[\S]{4,}'); $options['pattern'] = vartrue($options['pattern'],'[\S]{4,}');
$options['required'] = vartrue($options['required'], 1); $options['required'] = varset($options['required'], 1);
$options['class'] = vartrue($options['class'],'e-password'); $options['class'] = vartrue($options['class'],'e-password');
$options = $this->format_options('text', $name, $options); $options = $this->format_options('text', $name, $options);