Merge pull request #3439 from tobiasd/20170506-token

[Needs OpenID testing] Add token to register
This commit is contained in:
Michael Vogel 2017-07-02 21:31:53 +02:00 committed by GitHub
commit 2b161108fe
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -3,6 +3,7 @@
<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}}