• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7700 for generic doc work for TWiki-6.0.2. Use View topic Item7703 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item7829: Confirmation email after registration contains "0" as login name

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Being Worked On TWiki:Main.HaraldJoerg    

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


This has been brought to my knowledge by an user of one of my recent installations, but until now I've been to lazy to follow up: We had a TemplateLogin in place, no login names ({Register}{AllowLoginName} = $FALSE;). and finally, {AntiSpam}{HideUserDetails} = 1;. After registering, he received a mail saying Login as "0".

I can easily reproduce this. The root cause is that the mail text is composed in a session which does not really belong to the user who is about to register. It can either be guest, or as well any authenticated (probably unprivileged) user who visited the registration page to register someone else. Therefore, it doesn't work to use %USERINFO{}% for variable substitution in the configuration mail: It doesn't expand anything unless an administrator performs the registration.

Also to be handled under this item: The same welcome message contains a note If you got this e-mail by mistake: Somebody ([_1]) registered at the [_2] site using your mail address [_3]. The inserts [_1] and [_3] are filled with data from the registration form. For [_1], this is just wrong when someone in an authenticated session (as in case 2 above) did the registration.

In both cases, either the registration code itself has to do the substitution outside of the usual TWiki variable expansion, or the expansion of %USERINFO{}% needs yet another special case to handle. I'm not sure which is uglier.

-- TWiki:Main/HaraldJoerg - 2017-11-30

Summary Confirmation email after registration contains "0" as login name
ReportedBy TWiki:Main.HaraldJoerg
Codebase 6.0.2
SVN Range TWiki-6.0.2-trunk, Fri, 03 Nov 2017, build 30403
AppliesTo Engine

Priority Normal
CurrentState Being Worked On
WaitingFor TWiki:Main.HaraldJoerg



Topic revision: r1 - 2017-11-30 - HaraldJoerg
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback