Gossamer Forum
Home : Products : Others : Gossamer Community :

ERROR: can't register new user normal

Quote Reply
ERROR: can't register new user normal
use anything as username, display error message:

Username must be at least 3 characters long and consist of only letters and numbers.

i had set username_regx is empty.

my MSN: perlchina_at_hotmail.com
Quote Reply
Re: [tsingson] ERROR: can't register new user normal In reply to
*Unofficial quick fix*

On line 238 of private/lib/User.pm change:

Code:
return ($username =~ /$CFG->{signup_username_regex}/) ? 0 : 1;

to...

Code:

if ($CFG->{signup_username_regex}) {
return ($username =~ /$CFG->{signup_username_regex}/) ? 0 : 1;
}
return 1;
Quote Reply
Antwort: [Paul] Re: [tsingson] ERROR: can't register new user normal In reply to
thanks a lot.

i use the komodo debug 2 hours found it.

my MSN: perlchina_at_hotmail.com
Quote Reply
Re: [tsingson] Antwort: [Paul] Re: [tsingson] ERROR: can't register new user normal In reply to
>>
i use the komodo debug 2 hours found it.
<<

Not sure what that means?