add token to register
This commit is contained in:
parent
3dc938d2e9
commit
dacef3683a
|
@ -6,6 +6,7 @@ require_once('include/user.php');
|
||||||
|
|
||||||
if(! function_exists('register_post')) {
|
if(! function_exists('register_post')) {
|
||||||
function register_post(App $a) {
|
function register_post(App $a) {
|
||||||
|
check_form_security_token_redirectOnErr('/register', 'register');
|
||||||
|
|
||||||
global $lang;
|
global $lang;
|
||||||
|
|
||||||
|
@ -294,7 +295,7 @@ function register_content(App $a) {
|
||||||
'$sitename' => $a->get_hostname(),
|
'$sitename' => $a->get_hostname(),
|
||||||
'$importh' => t('Import'),
|
'$importh' => t('Import'),
|
||||||
'$importt' => t('Import your profile to this friendica instance'),
|
'$importt' => t('Import your profile to this friendica instance'),
|
||||||
|
'$form_security_token' => get_form_security_token("register")
|
||||||
));
|
));
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<form action="register" method="post" id="register-form">
|
<form action="register" method="post" id="register-form">
|
||||||
|
|
||||||
<input type="hidden" name="photo" value="{{$photo}}" />
|
<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}}
|
{{if $registertext != ""}}<div class="error-message">{{$registertext}} </div>{{/if}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue