diff --git a/mod/register.php b/mod/register.php index d6343a228..4766445d8 100644 --- a/mod/register.php +++ b/mod/register.php @@ -8,6 +8,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; @@ -296,7 +297,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}}