if(! function_exists('register_post')) {
function register_post(App $a) {
+ check_form_security_token_redirectOnErr('/register', 'register');
global $lang;
'$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;
<form action="register" method="post" id="register-form">
<input type="hidden" name="photo" value="{{$photo}}" />
+ <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
{{if $registertext != ""}}<div class="error-message">{{$registertext}} </div>{{/if}}