From: Tobias Diekershoff Date: Sat, 6 May 2017 12:49:53 +0000 (+0200) Subject: add token to register X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dacef3683a3d745c126e11fcfeff719076427d16;p=friendica.git add token to register --- diff --git a/mod/register.php b/mod/register.php index 5e8da4685a..cfb65b69df 100644 --- a/mod/register.php +++ b/mod/register.php @@ -6,6 +6,7 @@ require_once('include/user.php'); if(! function_exists('register_post')) { function register_post(App $a) { + check_form_security_token_redirectOnErr('/register', 'register'); global $lang; @@ -294,7 +295,7 @@ function register_content(App $a) { '$sitename' => $a->get_hostname(), '$importh' => t('Import'), '$importt' => t('Import your profile to this friendica instance'), - + '$form_security_token' => get_form_security_token("register") )); return $o; diff --git a/view/templates/register.tpl b/view/templates/register.tpl index 5c55dac202..55c0862741 100644 --- a/view/templates/register.tpl +++ b/view/templates/register.tpl @@ -3,6 +3,7 @@
+ {{if $registertext != ""}}
{{$registertext}}
{{/if}}