Many websites encourage users to use their email address as a login name.
Problem
TWiki permits it but breaks the login name, by stripping out the @sign. Entries in TWikiUsers and .htaccess end up like 'addressdomain.com' instead of
address@domain.com; The user can log in but by omitting the @sign in their login id.
The
TWiki:Codev.RegisterCgiScriptRewrite did include a mod to allow the registration system to accept email addresses as login names (
http://twiki.org/cgi-bin/view/Codev/RegisterCgiScriptRewrite#Logging_in_with_WikiName_vs_Logi). It did work (honest!) but I neglected to put a test case so its my fault that this has broken.
Possible solutions
- The code that removes @signs could be modified to allow them again.
- Template login could be made to work by equally stripping out the @sign when the user logs in.
- If you agree with Richard's point in TWiki:Codev.LoginNamesShouldNotBeWikiNames and don't want email address as login then we should at least prevent the @sign being specified by the user in the login name.
Thoughts?
Sounds simple enough to do, pErsonally I'd favour allowing use of email addresses as login names. But it's an enhancement.
CC