aboutsummaryrefslogtreecommitdiff
path: root/actions/register.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-24 16:25:45 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-24 16:25:45 +0000
commiteafaae2327feb7244c37da3e94dbbc912be9db88 (patch)
tree769644201baaf38c1b5a465a5fef5d7f81683151 /actions/register.php
parentcfeaf074b33716d589cec274216bb003e0e925dd (diff)
downloadelgg-eafaae2327feb7244c37da3e94dbbc912be9db88.tar.gz
elgg-eafaae2327feb7244c37da3e94dbbc912be9db88.tar.bz2
The friend invite infrastructure is now secure.
git-svn-id: https://code.elgg.org/elgg/trunk@2310 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/register.php')
-rw-r--r--actions/register.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/actions/register.php b/actions/register.php
index a92f37f54..5cbb9afbf 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -23,6 +23,7 @@
$email = get_input('email');
$name = get_input('name');
$friend_guid = (int) get_input('friend_guid',0);
+ $invitecode = get_input('invitecode');
$admin = get_input('admin');
if (is_array($admin)) $admin = $admin[0];
@@ -38,7 +39,7 @@
(trim($password)!="") &&
(strcmp($password, $password2)==0)
) &&
- ($guid = register_user($username, $password, $name, $email, $friend_guid))
+ ($guid = register_user($username, $password, $name, $email, false, $friend_guid, $invitecode))
) {
$new_user = get_entity($guid);
@@ -69,7 +70,7 @@
$qs = explode('?',$_SERVER['HTTP_REFERER']);
$qs = $qs[0];
- $qs .= "?u=" . urlencode($username) . "&e=" . urlencode($email) . "&n=" . urlencode($name);
+ $qs .= "?u=" . urlencode($username) . "&e=" . urlencode($email) . "&n=" . urlencode($name) . "&friend_guid=" . $friend_guid;
forward($qs);