Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Needs OpenID testing] Add token to register #3439

Merged
merged 1 commit into from Jul 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion mod/register.php
Expand Up @@ -6,6 +6,7 @@

if(! function_exists('register_post')) {
function register_post(App $a) {
check_form_security_token_redirectOnErr('/register', 'register');

global $lang;

Expand Down Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions view/templates/register.tpl
Expand Up @@ -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}}

Expand Down