The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

username - phpmanager

Discussion in 'General Discussion' started by Provision, May 25, 2003.

  1. Provision

    Provision Registered

    Joined:
    Mar 27, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I am using a third party script (phpmanger) to auto create accounts. But it does not correctly check that a valid username was used when a client is signing up. So, I would like to fix this....does anyone know what I would need to check for to insure a valid username? (example first character cannot be a number) Also, is there anything I can't have in the password?

    Thanks,
    Brett

    cPanel.net Support Ticket Number:
     
  2. loststryk

    loststryk Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    London, UK.
    try forums.phpmanager.com

    cPanel.net Support Ticket Number:
     
  3. Provision

    Provision Registered

    Joined:
    Mar 27, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    hmm...

    hmm....I think this post would be more on topic in this forum. Since I am asking about the type of string WHM wants for the username and password.

    I'm not asking how phpmanager works, or how to modify phpmanager...but rather what does whm expect...so that I can modify phpmanager.

    cPanel.net Support Ticket Number:
     
  4. Provision

    Provision Registered

    Joined:
    Mar 27, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    This is what I have

    Well, this is what I came up with...let me know if I am forgetting something

    PHP:
    if(ereg("^[0-9]"$username)  || !ctype_alnum($username)){
    Just checks if first char is a number and if the rest is not a number or letter. Then display's an error message.
     
  5. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
Loading...

Share This Page