Merge pull request #3439 from tobiasd/20170506-token
[Needs OpenID testing] Add token to register
This commit is contained in:
commit
2b161108fe
2 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,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;
|
||||||
|
|
||||||
|
@ -296,7 +297,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