ISPConfig username length

Discussion in 'Installation/Configuration' started by carloscastaneda, Aug 9, 2006.

  1. carloscastaneda

    carloscastaneda New Member

    Is there any way that I can configure ISPConfig to accept usernames that are minumum 3 instead of 4 letters as it is the default setting right now?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You can change the regular expression in /home/admispconfig/ispconfig/lib/plugins/isp_username.plugin.php.
     
  3. punto

    punto New Member

    I opened the file
    /home/admispconfig/ispconfig/lib/plugins/isp_username.plugin.php

    and changed the following rule from 3 to 2

    if(!preg_match("/^[a-z][\w\.\-\_]{2,64}$/",$user_prefix . $username)) {


    I also changed the following from 4 to 3 (so the error message would be consistent with the rule)
    Der Username muss aus min. 3, max 32

    It works in that I can create a user of three letters but then if I enter an incorrect length username (< 3 or >32) I get the following error message in German instead of English! :confused:

    Field: Username
    Der Username muss aus min. 3, max 32 Buchstaben oder Zahlen bestehen, wobei er mit einem Buchstaben beginnen muss

    I changed nothing else.

    Please help

    Matt
     
    Last edited: Aug 15, 2006
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please undo the change in the sentence: "Der Username muss aus min. 3, max 32" and change the text in the language file instead.
     
  5. punto

    punto New Member

    Cheers Till.

    Regards

    Matt
     

Share This Page