Comparing revisions for UserRegistration

Additions:
>>__Note__: future Wikka development will include separate actions for registration, login, logout, user settings. --- See also: RegisterAction>>::c::
'allow_registration' => '2',
'registercode' => 'helloWorld',
2 - password required
registercode takes the password
====changes in usersettings====
changes in ##actions/usersettings.php##:
line 123
// is user trying to log in or register?
$register = $this->GetConfigValue('allow_registration');
if (isset($_REQUEST["action"]) && ($_REQUEST["action"] == "login"))
line 140
// otherwise, create new account when registration is possible without limits (1) or the password matches (2)
else if ($register == '1' || ($register == '2' && $_REQUEST['code_input'] == $this->GetConfigValue('registercode')))
line 169
else
{
$error = "Sorry, the register-code you entered was not correct!";
}
lines 218-233
<?php
$register = $this->GetConfigValue('allow_registration');
if ($register == '1' || $register == '2')
{
?>
<tr>
<td align="right"></td>
<td width="500">Stuff you only need to fill in when you are logging in for the first time (and thus signing up as a new user on this site)</td>
</tr>
<tr>
<td align='right'>Confirm password:</td>
<td><input type='password' name='confpassword' size='40' /></td>
</tr>
<tr>
<td align='right'>Email address:</td>
<td><input name='email' size='40' /></td>
</tr>
<?php
if ($register == '2')
{
?>
<tr>
<td align='right'>Register Code:</td><td><input type='text' size='20' name='code_input' /></td>
</tr>
<?php
}
?>
<tr>
<td></td>
<td><input type='submit' value='Register' size='40' /></td>
</tr>
<?php
}
?>
CategoryUserContributions
Deletions:
<<==SVN==
{{svn}}''2006-06-18''
This patch has been committed to the SVN repository and will be included in ##1.1.7##:
~-[[Ticket:236 Ticket]]
~-[[http://wush.net/trac/wikka/changeset/130 Changelog for r130]] and [[http://wush.net/trac/wikka/changeset/138 r138]]
Patched files:
~-##[[http://wush.net/trac/wikka/browser/trunk/actions/usersettings.php?rev=130&format=raw actions/usersettings.php]] followed by [[http://wush.net/trac/wikka/browser/trunk/actions/usersettings.php?rev=138&format=raw r138]]##
~-##[[http://wush.net/trac/wikka/browser/trunk/setup/install.php?rev=130&format=raw setup/install.php]] followed by [[http://wush.net/trac/wikka/browser/trunk/setup/install.php?rev=138&format=raw r138]]##
~-##[[http://wush.net/trac/wikka/browser/trunk/wikka.php?rev=130&format=raw trunk/wikka.php]] followed by [[http://wush.net/trac/wikka/browser/trunk/wikka.php?rev=138&format=raw r138]]##
<<
>> **See also:**
~-UserAccountModules
~-RegisterAction
>>::c::
'allow_user_registration' => '2',
'invitation_code' => 'helloWorld',
2 - password required (''deprecated as of 1.1.6.4, see note below'')
invitation_code takes the password
~&In 1.1.6.4, the invitation code setting (2) was replaced by a [[Docs:UserRegistrationValidationFramework user registration module]]. This has been ported to 1.1.7.
''Note that the code you can find in the history of this page is out of date and won't be updated since it will be in 1.1.7''
CategoryDevelopmentActions CategoryDevelopmentUserAccount
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki