View Single Post
  #2  
Old 24th August 2005, 11:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,983
Thanks: 825
Thanked 5,372 Times in 4,219 Posts
Default

Quote:
Originally Posted by skeeta
Hi All

Can I change some configuration file to allow 3 letter usernames (ie les, bob & sue) as I am trying to convert an existing site without upsetting the users!

Thanks for your time.
You have to chnage the ISPConfig code, in the file:

/home/admispconfig/ispconfig/lib/plugins/isp_username.plugin.php

change line 138 from:

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

Code:
if(!preg_match("/^[a-z][\w\.\-\_]{2,64}$/",$user_prefix . $username)) {
Reply With Quote