Provision

Registered
Mar 27, 2003
3
0
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:
 

Provision

Registered
Mar 27, 2003
3
0
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:
 

Provision

Registered
Mar 27, 2003
3
0
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.