add token to register

This commit is contained in:
Tobias Diekershoff 2017-05-06 14:49:53 +02:00
commit dacef3683a
2 changed files with 3 additions and 1 deletions

View file

@ -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;