Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagephp
$this->apiUrl = rtrim($url, "/") . ":2222";

Change maximum username length

By default Directadmin usernames must be between 4 and 8 characters in length. You can change this by editing /components/modules/direct_admin/direct_admin.php, and within the method "getServiceRules", look for and update the following code block, changing the "8" to the new desired length limit.

Code Block
languagephp
                'length' => [
                    'if_set' => true,
                    'rule' => ['betweenLength', 4, 8],
                    'message' => Language::_('DirectAdmin.!error.direct_admin_username.length', true)
                ]