Username with a number

Discussion in 'Installation/Configuration' started by kassie, Jul 4, 2007.

  1. kassie

    kassie New Member


    Is there anywat I can start a username with a number??
    I am using [domain]_ as prefix so i can use email address as username.

    if the domain starts with a number ( i cannot add a email account as the username will always start with a number...

    Any help please
  2. till

    till Super Moderator Staff Member ISPConfig Developer


    you will either have to change the regular expression or do not use the domain as prefix.
  3. phamels

    phamels Member

    Hey Till,

    Any clue on where the regex can be found,
    I'm going nuts trying to look for the regex in "isp_username.plugin.php" under "/home/admispconfig/ispconfig/lib/plugins"

    Might be I'm just looking in the wrong file, clues are welcome :cool:


  4. falko

    falko Super Moderator ISPConfig Developer

    The regex is in line 144:

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

    phamels Member

    Thx allot, really helped me out here ;)

Share This Page