#1  
Old 24th August 2005, 11:31
skeeta skeeta is offline
Junior Member
 
Join Date: Aug 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Change minimum user name length

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.
Reply With Quote
Sponsored Links
  #2  
Old 24th August 2005, 11:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,197
Thanks: 829
Thanked 5,420 Times in 4,262 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
  #3  
Old 25th August 2005, 03:33
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
Default

By changing the code above, am I correct to assume that the normal/default login for webmail and ftp can be changed to just a username? Or better yet, firstname_lastname? Please tall me it's possible!?
Reply With Quote
  #4  
Old 25th August 2005, 10:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by domino
By changing the code above, am I correct to assume that the normal/default login for webmail and ftp can be changed to just a username? Or better yet, firstname_lastname? Please tall me it's possible!?
If you don't want the prefix then you can leave empty the field User Prefix under Management -> System Config -> Settings -> ISP Manager.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 25th August 2005, 10:46
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
Default

Yes, I know where that is. But I was under the impression that the prefix was manditory. Thanks again for pointing this out. I suppose there would be some slight implication by not providing a prefix?
Reply With Quote
  #6  
Old 25th August 2005, 10:57
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,197
Thanks: 829
Thanked 5,420 Times in 4,262 Posts
Default

Quote:
Originally Posted by domino
Yes, I know where that is. But I was under the impression that the prefix was manditory. Thanks again for pointing this out. I suppose there would be some slight implication by not providing a prefix?
The only problem you might get, is if you have two users withe the name "jones", both would try to get the username "jones". Then the controlpanel denys the second one with an error message like "username jones already exists". This might confuse your customers because they cant see the user jones in the users list, when it belongs to another customer
Reply With Quote
  #7  
Old 25th August 2005, 11:08
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
 
Default

Quote:
The only problem you might get, is if you have two users withe the name "jones", both would try to get the username "jones". Then the controlpanel denys the second one with an error message like "username jones already exists". This might confuse your customers because they cant see the user jones in the users list, when it belongs to another customer
Point taken till. But I don't think that applies to me as I don't have clients. Only friends and family, so I have full control on who I want to register and what names I want to give them.

Others might take heed to your posts though. As for myself, I just want to make this as least painfull to my computer illiterate parents and friends.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change keymap under Debian fernando Technical 3 15th June 2006 16:28
User Prefix vs User Suffix skeeta Installation/Configuration 2 21st August 2005 13:36
more then one ftp user pontifex Installation/Configuration 3 16th August 2005 11:36
user "mail space mb" is missing ... schwan Installation/Configuration 2 4th August 2005 21:54


All times are GMT +2. The time now is 20:49.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.