<?php
+use Friendica\App;
+
require_once('include/enotify.php');
require_once('include/bbcode.php');
require_once('include/user.php');
if(! function_exists('register_post')) {
function register_post(App $a) {
+ check_form_security_token_redirectOnErr('/register', 'register');
global $lang;
}
// Only send a password mail when the password wasn't manually provided
- if (!x($_POST,'password1') OR !x($_POST,'confirm')) {
+ if (!x($_POST,'password1') || !x($_POST,'confirm')) {
$res = send_register_open_eml(
$user['email'],
$a->config['sitename'],
'$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;