mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Enforce minimum length for passwords
This commit is contained in:
@@ -9,9 +9,9 @@
|
|||||||
* Administration - Site Preferences
|
* Administration - Site Preferences
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_admin/prefs.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_admin/prefs.php,v $
|
||||||
* $Revision: 1.27 $
|
* $Revision: 1.28 $
|
||||||
* $Date: 2009-01-16 17:57:56 $
|
* $Date: 2009-03-02 21:55:27 $
|
||||||
* $Author: secretr $
|
* $Author: e107steved $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
require_once ("../class2.php");
|
require_once ("../class2.php");
|
||||||
@@ -68,7 +68,11 @@ if(isset($_POST['updateprefs']))
|
|||||||
$_POST['disable_emailcheck'] = 0;
|
$_POST['disable_emailcheck'] = 0;
|
||||||
|
|
||||||
// Table of range checking values - min and max for numerics. Only do the important ones
|
// Table of range checking values - min and max for numerics. Only do the important ones
|
||||||
$pref_limits = array('loginname_maxlength' => array('min' => 10, 'max' => 100, 'default' => 30), 'displayname_maxlength' => array('min' => 5, 'max' => 30, 'default' => 15), 'antiflood_timeout' => array('min' => 3, 'max' => 300, 'default' => 10));
|
$pref_limits = array('loginname_maxlength' => array('min' => 10, 'max' => 100, 'default' => 30),
|
||||||
|
'displayname_maxlength' => array('min' => 5, 'max' => 30, 'default' => 15),
|
||||||
|
'antiflood_timeout' => array('min' => 3, 'max' => 300, 'default' => 10),
|
||||||
|
'signup_pass_len' => array('min' => 2, 'max' => 100, 'default' => 4)
|
||||||
|
);
|
||||||
|
|
||||||
$pref['post_html'] = intval($_POST['post_html']); // This ensures the setting is reflected in set text
|
$pref['post_html'] = intval($_POST['post_html']); // This ensures the setting is reflected in set text
|
||||||
|
|
||||||
@@ -529,7 +533,6 @@ $text .= "
|
|||||||
<td class='label'>".CUSTSIG_16."</td>
|
<td class='label'>".CUSTSIG_16."</td>
|
||||||
<td class='control'>
|
<td class='control'>
|
||||||
".$frm->text('signup_pass_len', $pref['signup_pass_len'], 2)."
|
".$frm->text('signup_pass_len', $pref['signup_pass_len'], 2)."
|
||||||
<div class='field-help'>".PRFLAN_78."</div>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_files/def_e107_prefs.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_files/def_e107_prefs.php,v $
|
||||||
| $Revision: 1.21 $
|
| $Revision: 1.22 $
|
||||||
| $Date: 2009-01-09 17:25:50 $
|
| $Date: 2009-03-02 21:55:39 $
|
||||||
| $Author: secretr $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ City, State, Country
|
|||||||
'user_reg_veri' => '1',
|
'user_reg_veri' => '1',
|
||||||
'user_reg_secureveri' => '1',
|
'user_reg_secureveri' => '1',
|
||||||
'autologinpostsignup' => '0',
|
'autologinpostsignup' => '0',
|
||||||
'signup_pass_len' => '',
|
'signup_pass_len' => '4',
|
||||||
'signup_maxip' => '3',
|
'signup_maxip' => '3',
|
||||||
'signup_disallow_text' => '',
|
'signup_disallow_text' => '',
|
||||||
'disable_emailcheck' => 0,
|
'disable_emailcheck' => 0,
|
||||||
|
Reference in New Issue
Block a user