Hacks:Engine:Only one character email username

From VHCP Support

Jump to: navigation, search

By default VHCP requirements for email username are atleast 2 characters. This can be changed by editing regular expression in /var/www/vhcp/gui/include/admin-functions.php line 1764, change this:

"/^[A-Za-z0-9][A-Za-z0-9\.\-\_]*[A-Za-z0-9\-\_]$/",

to this:

"/^[-A-Za-z0-9\.-_]*[A-Za-z0-9]$/",
Personal tools