Can username be an email address?

Discuss news styles, css code, and other Coranto customizations in here...the possibilities are endless, so have at it!

Moderator: Spunkmeyer

Can username be an email address?

Postby VZey » Thu Oct 20, 2005 8:43 am

I wish to have my Coranto usernames as email addresses only, however it doesn't allow the @ or . in usernames.

Is there a way around this?
User avatar
VZey
 
Posts: 185
Joined: Wed Apr 24, 2002 6:30 am

Postby bozoka45 » Thu Oct 20, 2005 5:08 pm

You'd have to change this line in cradmin.pl:

Code: Select all
CRcough(CRgetmsg('Username "[_1]" contains illegal characters. Only letters, numbers, and underscores are permitted in usernames.', $newuser)) if ($newuser =~ /[^a-zA-Z0-9_]/);


It would involve changing part of the core, so I wouldn't recommend it.
User avatar
bozoka45
 
Posts: 1159
Joined: Sun Mar 23, 2003 8:38 pm
Location: New Orleans

Postby Parahead » Thu Oct 20, 2005 6:32 pm

bozoka45 wrote:You'd have to change this line in cradmin.pl:

Code: Select all
CRcough(CRgetmsg('Username "[_1]" contains illegal characters. Only letters, numbers, and underscores are permitted in usernames.', $newuser)) if ($newuser =~ /[^a-zA-Z0-9_]/);


It would involve changing part of the core, so I wouldn't recommend it.
I haven't looked into this but one would need to make sure to escape the @ at all places where usernames are used as well....
Yes, I am still around...
www.parahead.com/coranto/
User avatar
Parahead
 
Posts: 4837
Joined: Fri Jan 12, 2007 8:54 pm
Location: Stockholm - Sweden

Postby bozoka45 » Fri Oct 21, 2005 8:21 am

Parahead wrote:I haven't looked into this but one would need to make sure to escape the @ at all places where usernames are used as well....


Translation for non-coders: Don't try this at home.
User avatar
bozoka45
 
Posts: 1159
Joined: Sun Mar 23, 2003 8:38 pm
Location: New Orleans


Return to Customization

Who is online

Users browsing this forum: No registered users and 1 guest

cron