You are here: Foswiki>Tasks Web>Item1880 (22 Mar 2011, GeorgeClark)Edit Attach

Many websites encourage users to use their email address as a login name.


TWiki permits it but breaks the login name, by stripping out the @sign. Entries in TWikiUsers and .htaccess end up like '' instead of; 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 ( It did work (honest!) but I neglected to put a test case so its my fault that this has broken.

Possible solutions

  1. The code that removes @signs could be modified to allow them again.
  2. Template login could be made to work by equally stripping out the @sign when the user logs in.
  3. 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.

Sounds simple enough to do, pErsonally I'd favour allowing use of email addresses as login names. But it's an enhancement.


ItemTemplate edit

Summary Can't use email addresses as login names.
ReportedBy TWiki:Main.MartinCleaver
SVN Range Mon, 13 Mar 2006 build 9258
AppliesTo Engine
Component LoginManager
Priority Enhancement
CurrentState Proposal Required
TargetRelease n/a
ReleasedIn n/a
Topic revision: r5 - 22 Mar 2011, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy