Print Page | Close Window

Username character limit

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=20203
Printed Date: 29 March 2026 at 10:57pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Username character limit
Posted By: iSec
Subject: Username character limit
Date Posted: 07 June 2006 at 9:27am

Is there a way to increase the username character limitQuestion



-------------
"When it gets dark enough, you can see the stars"
-Charles A. Beard



Replies:
Posted By: WebWiz-Bruce
Date Posted: 07 June 2006 at 9:48am
You can but it's not simple, have a look in the mods forum to see if anyone else has already done this.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: hotvb
Date Posted: 17 July 2006 at 1:45am
I had same question, and there is no solution in mods forum.
 
In the register.asp only found
 
        'If this is a new reg clean up the username
        If strMode = "new" Then
                'Check there is a username
                If Len(strUsername) < 4 Then blnUsernameOK = False
                'Make sure the user has not entered disallowed usernames
                If InStr(1, strUsername, "admin", vbTextCompare) Then blnUsernameOK = False
                If InStr(1, strUsername, "password", vbTextCompare) Then blnUsernameOK = False
                If InStr(1, strUsername, "salt", vbTextCompare) Then blnUsernameOK = False
                If InStr(1, strUsername, "author", vbTextCompare) Then blnUsernameOK = False
                If InStr(1, strUsername, "code", vbTextCompare) Then blnUsernameOK = False
                If InStr(1, strUsername, "username", vbTextCompare) Then blnUsernameOK = False
                'Clean up user input
                strUsername = formatSQLInput(strUsername)
        End If
 
does anyone can help? many thanks!


Posted By: SMR Group
Date Posted: 19 July 2006 at 3:46am
I've done this.  The MySQL database doesn't need to be changed, but you have to update a bunch of files.  Everywhere you see a username field (log-in, private messaging, search boxes) change the maxlength of the field to what you require, then look in the code for the trim function.  It'll currently be set to 15, that has to match the maxlength of the box.
 
Bear in mind that you shouldn't really allow a long input (I find 20 characters enough) for obvious reasons.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net