From dacef3683a3d745c126e11fcfeff719076427d16 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sat, 6 May 2017 14:49:53 +0200 Subject: [PATCH] add token to register --- mod/register.php | 3 ++- view/templates/register.tpl | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/register.php b/mod/register.php index 5e8da4685..cfb65b69d 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 5c55dac20..55c086274 100644 --- a/view/templates/register.tpl +++ b/view/templates/register.tpl @@ -3,6 +3,7 @@
+ {{if $registertext != ""}}
{{$registertext}}
{{/if}}