From 7ca202baada95b69eea822e04fe89467c7ad74e2 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 3 Nov 2019 17:05:06 +0100 Subject: [PATCH] add a tar pid to the registration form --- src/Module/Register.php | 5 +++++ view/templates/register.tpl | 1 + view/theme/frio/templates/register.tpl | 1 + 3 files changed, 7 insertions(+) diff --git a/src/Module/Register.php b/src/Module/Register.php index 03f9dbb698..4071020e32 100644 --- a/src/Module/Register.php +++ b/src/Module/Register.php @@ -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']); diff --git a/view/templates/register.tpl b/view/templates/register.tpl index 456fadaab8..bbfdffa620 100644 --- a/view/templates/register.tpl +++ b/view/templates/register.tpl @@ -56,6 +56,7 @@ {{if $permonly}} {{include file="field_textarea.tpl" field=$permonlybox}} + {{/if}} {{$publish nofilter}} diff --git a/view/theme/frio/templates/register.tpl b/view/theme/frio/templates/register.tpl index 4819c5ee81..7dd802f5e0 100644 --- a/view/theme/frio/templates/register.tpl +++ b/view/theme/frio/templates/register.tpl @@ -56,6 +56,7 @@ {{if $permonly}} {{include file="field_textarea.tpl" field=$permonlybox}} + {{/if}} {{$publish nofilter}} -- 2.39.5