add a tar pid to the registration form
This commit is contained in:
parent
7534a6cde9
commit
7ca202baad
|
@ -261,6 +261,11 @@ class Register extends BaseModule
|
||||||
|
|
||||||
$a->internalRedirect('register/');
|
$a->internalRedirect('register/');
|
||||||
}
|
}
|
||||||
|
// Is there text in the tar pid?
|
||||||
|
if (!empty($_POST('registeertarpid'))) {
|
||||||
|
\notice(L10n::t('You have entered too much information.'));
|
||||||
|
$a->internalRedirect('register/');
|
||||||
|
}
|
||||||
|
|
||||||
Model\Register::createForApproval($user['uid'], Config::get('system', 'language'), $_POST['permonlybox']);
|
Model\Register::createForApproval($user['uid'], Config::get('system', 'language'), $_POST['permonlybox']);
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
|
|
||||||
{{if $permonly}}
|
{{if $permonly}}
|
||||||
{{include file="field_textarea.tpl" field=$permonlybox}}
|
{{include file="field_textarea.tpl" field=$permonlybox}}
|
||||||
|
<input type="input" id="registertarpid" style="display: none;" value="Don't enter anything here" />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{$publish nofilter}}
|
{{$publish nofilter}}
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
|
|
||||||
{{if $permonly}}
|
{{if $permonly}}
|
||||||
{{include file="field_textarea.tpl" field=$permonlybox}}
|
{{include file="field_textarea.tpl" field=$permonlybox}}
|
||||||
|
<input type="input" id="registertarpid" style="display: none;" value="Don't enter anything here"/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{$publish nofilter}}
|
{{$publish nofilter}}
|
||||||
|
|
Loading…
Reference in a new issue