#1  
Old 9th August 2006, 16:43
carloscastaneda carloscastaneda is offline
Junior Member
 
Join Date: Jul 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default ISPConfig username length

Is there any way that I can configure ISPConfig to accept usernames that are minumum 3 instead of 4 letters as it is the default setting right now?
Reply With Quote
Sponsored Links
  #2  
Old 10th August 2006, 17:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

You can change the regular expression in /home/admispconfig/ispconfig/lib/plugins/isp_username.plugin.php.
__________________
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
  #3  
Old 15th August 2006, 03:30
punto punto is offline
Member
 
Join Date: Jul 2006
Posts: 84
Thanks: 12
Thanked 2 Times in 1 Post
Default

I opened the file
/home/admispconfig/ispconfig/lib/plugins/isp_username.plugin.php

and changed the following rule from 3 to 2

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


I also changed the following from 4 to 3 (so the error message would be consistent with the rule)
Der Username muss aus min. 3, max 32

It works in that I can create a user of three letters but then if I enter an incorrect length username (< 3 or >32) I get the following error message in German instead of English!

Field: Username
Der Username muss aus min. 3, max 32 Buchstaben oder Zahlen bestehen, wobei er mit einem Buchstaben beginnen muss

I changed nothing else.

Please help

Matt

Last edited by punto; 15th August 2006 at 03:34.
Reply With Quote
  #4  
Old 15th August 2006, 08:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

Please undo the change in the sentence: "Der Username muss aus min. 3, max 32" and change the text in the language file instead.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 15th August 2006, 12:16
punto punto is offline
Member
 
Join Date: Jul 2006
Posts: 84
Thanks: 12
Thanked 2 Times in 1 Post
 
Thumbs up

Cheers Till.

Regards

Matt
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
Upgrading failed, ispconfig broken and ispconfig won't upgrade again dfriis Installation/Configuration 7 14th June 2006 17:54
ISPConfig 2.3.1-dev released till General 0 8th May 2006 22:18
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16
Users and websites aren't created Glorfindel Installation/Configuration 9 23rd February 2006 04:20
42goISP vs. ISPConfig nveid General 1 16th January 2006 09:07


All times are GMT +2. The time now is 17:26.


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