mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-08 08:35:31 +02:00
Remove references to max_warnings as we are not using the value
More advanced handling of warnings (ie ability to automatically ban at a threshold is likely to follow in 3.2 instead) git-svn-id: file:///svn/phpbb/trunk@5887 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
3d2a45ab04
commit
3640410cc0
@ -46,7 +46,6 @@ class acp_board
|
|||||||
|
|
||||||
'legend2' => 'WARNINGS',
|
'legend2' => 'WARNINGS',
|
||||||
'warnings_expire_days' => array('lang' => 'WARNINGS_EXPIRE', 'type' => 'text:3:4', 'explain' => true),
|
'warnings_expire_days' => array('lang' => 'WARNINGS_EXPIRE', 'type' => 'text:3:4', 'explain' => true),
|
||||||
// 'max_warnings'
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
@ -581,14 +581,11 @@ class acp_users
|
|||||||
$data['username'] = $data['user'];
|
$data['username'] = $data['user'];
|
||||||
unset($data['user']);
|
unset($data['user']);
|
||||||
|
|
||||||
/**
|
|
||||||
* @todo $config['max_warnings'] does not exist yet
|
|
||||||
*/
|
|
||||||
// Validation data
|
// Validation data
|
||||||
$var_ary = array(
|
$var_ary = array(
|
||||||
'password_confirm' => array('string', true, $config['min_pass_chars'], $config['max_pass_chars']),
|
'password_confirm' => array('string', true, $config['min_pass_chars'], $config['max_pass_chars']),
|
||||||
'user_password' => array('string', true, $config['min_pass_chars'], $config['max_pass_chars']),
|
'user_password' => array('string', true, $config['min_pass_chars'], $config['max_pass_chars']),
|
||||||
'warnings' => array('num', 0, $config['max_warnings']),
|
'warnings' => array('num'),
|
||||||
);
|
);
|
||||||
|
|
||||||
// Check username if altered
|
// Check username if altered
|
||||||
|
Loading…
x
Reference in New Issue
Block a user