]> git.mxchange.org Git - friendica.git/commitdiff
add a tar pid to the registration form
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 3 Nov 2019 16:05:06 +0000 (17:05 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 3 Nov 2019 16:05:06 +0000 (17:05 +0100)
src/Module/Register.php
view/templates/register.tpl
view/theme/frio/templates/register.tpl

index 03f9dbb69871dd44fb666b778fabede9aa6a2cfd..4071020e320b55db765ea5741e1dedaece48cbcf 100644 (file)
@@ -261,6 +261,11 @@ class Register extends BaseModule
 
                                $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']);
 
index 456fadaab841825fac65ad83dc858603d2cf518f..bbfdffa6204c5e2066fa9cec99263cefd6c4ff3f 100644 (file)
@@ -56,6 +56,7 @@
 
 {{if $permonly}}
     {{include file="field_textarea.tpl" field=$permonlybox}}
+       <input type="input" id="registertarpid" style="display: none;" value="Don't enter anything here" />
 {{/if}}
 
        {{$publish nofilter}}
index 4819c5ee817964a2801c20fb0db73a69777ed90b..7dd802f5e0443e877e06e3d12f560ee888a0f896 100644 (file)
@@ -56,6 +56,7 @@
 
                {{if $permonly}}
                {{include file="field_textarea.tpl" field=$permonlybox}}
+               <input type="input" id="registertarpid" style="display: none;" value="Don't enter anything here"/>
                {{/if}}
 
                {{$publish nofilter}}