Index: branches/5.2.x/core/units/users/users_event_handler.php =================================================================== diff -u -N -r14095 -r14184 --- branches/5.2.x/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 14095) +++ branches/5.2.x/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 14184) @@ -1,6 +1,6 @@ GetFieldOptions('RootPassword'); $field_options['salt'] = 'b38'; - $object->SetFieldOptions('RootPassword', $field_options); - $verify_options = $object->GetFieldOptions('VerifyRootPassword'); - $verify_options['salt'] = 'b38'; - $object->SetFieldOptions('VerifyRootPassword', $verify_options); // this is internal hack to allow root/root passwords for dev if ($this->Application->isDebugMode() && $field_values['RootPassword'] == 'root') { - $this->Application->ConfigHash['Min_Password'] = 4; + $field_options['min_length'] = 4; } + $object->SetFieldOptions('RootPassword', $field_options); + + $verify_options = $object->GetFieldOptions('VerifyRootPassword'); + $verify_options['salt'] = 'b38'; + $object->SetFieldOptions('VerifyRootPassword', $verify_options); + $this->RemoveRequiredFields($object); $object->SetDBField('RootPassword', $this->Application->ConfigValue('RootPass')); $object->SetFieldsFromHash($field_values);