Bug: Invalid Action in Register
After filling in TWikiRegistration (pub version, with passwords), I get an error message:
Test case
Go to
http://visiblearea.com/devtwiki/bin/view/TWiki/TWikiRegistration
and try to add a user.
Environment
--
ArthurClemens - 09 Mar 2005
Impact and Available Solutions
Follow up
The new registration form requires a hidden field called "action"; if it is not present you get the error:
invalid action () in register at /home/aclemens/visiblearea.com/devtwiki/lib/TWiki/UI/Register.pm line 101
TWiki::UI::Register::register_cgi('TWiki=HASH(0x80f57ac)') called at /home/aclemens/visiblearea.com/devtwiki/lib/TWiki/UI.pm line 140
TWiki::UI::run('TWiki::UI::Register', 'register_cgi') called at register line 32
You have an out of date registration form.
The up to date registration form has a hidden field called "action". The code in lib/TWiki/UI/Register.pm has a case statement that dispatches on this.
How do I know? I had a highly customized TWikiRegistration screen on one of my sites. I got bitten by this too!
Go to
http://svn.twiki.org/svn/twiki/branches/DEVELOP/data/TWiki/TWikiRegistration.txt
and scroll down to the last few lines of the form. There you will see
</tr><tr>
<td valign="top" align="right">
<input type="hidden" name="topic" value="%TOPIC%" />
<input type="hidden" name="action" value="register" />
</td>
<td>
<input type="submit" value=" Submit " /> (Fields marked =<Font color="red">**</font>= are required)
</td>
</tr>
</table>
</form>
It is the
<input type="hidden" name="action"
value="register" />
which is the important thing.
--
ArthurClemens - 21 Mar 2005
My plan is to make the register script default to the old behaviour if the parameter is omitted.
--
MartinCleaver - 19 Apr 2005
From
DevelopReleaseVersion, Dakar no longer mandates action=register parameter. Instead it defaults to register.txt
This release also defaults to not lowercasing the user name, thus providing continuity for users expecting
WikiNames and flexibility for those wishing to override with their preferred name.
Committed revision 4090.
--
MartinCleaver - 24 Apr 2005
Fix record
Discussion