01-09-2018, 08:31 PM
In admin_users.php:
<pre></pre>
...
If auto_assign_un==1 'username' should not be checked as it is in join.php, isn't it?
Elsewise it will throw 'Username is required'
<pre>
Code:
if($settings->auto_assign_un==1) {
$validation->check($_POST,array(
'username' => array(
'display' => 'Username',
'required' => true,
'min' => $settings->min_un,
'max' => $settings->max_un,
'unique' => 'users',
),
'fname' => array(
'display' => 'First Name',
'required' => true,
...
If auto_assign_un==1 'username' should not be checked as it is in join.php, isn't it?
Elsewise it will throw 'Username is required'