Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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:
    156
    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:
    151
    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:
    151
    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:
    316
    Location:
    Spain
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice