]> git.mxchange.org Git - friendica.git/blobdiff - mod/invite.php
Move include/security tp /src/Core/Authentication and /src/Util/Security
[friendica.git] / mod / invite.php
index 2a98d19ffcffaf5d3e3c660252e7f304d8d9572b..cd9de6cc0a0ed6e915d3b0ef459766013ee386ac 100644 (file)
@@ -14,6 +14,7 @@ use Friendica\Core\System;
 use Friendica\Database\DBA;
 use Friendica\Protocol\Email;
 use Friendica\Util\DateTimeFormat;
+use Friendica\Util\Security;
 
 function invite_post(App $a)
 {
@@ -22,7 +23,7 @@ function invite_post(App $a)
                return;
        }
 
-       check_form_security_token_redirectOnErr('/', 'send_invite');
+       Security::check_form_security_token_redirectOnErr('/', 'send_invite');
 
        $max_invites = intval(Config::get('system', 'max_invites'));
        if (! $max_invites) {
@@ -144,7 +145,7 @@ function invite_content(App $a) {
        }
 
        $o = replace_macros($tpl, [
-               '$form_security_token' => get_form_security_token("send_invite"),
+               '$form_security_token' => Security::get_form_security_token("send_invite"),
                '$title'               => L10n::t('Send invitations'),
                '$recipients'          => ['recipients', L10n::t('Enter email addresses, one per line:')],
                '$message'             => ['message', L10n::t('Your message:'),L10n::t('You are cordially invited to join me and other close friends on Friendica - and help us to create a better social web.') . "\r\n" . "\r\n"