From 434bcfef8ba816805df29736efb36f8c95c20769 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 16 Aug 2012 03:16:55 -0700 Subject: add invitiation logic to registrations - this is starting to look good --- mod/zregister.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mod') diff --git a/mod/zregister.php b/mod/zregister.php index 6d29cdf59..b8ed4c66b 100644 --- a/mod/zregister.php +++ b/mod/zregister.php @@ -7,6 +7,12 @@ function zregister_init(&$a) { $cmd = ((argc() > 1) ? argv(1) : ''); + + if($cmd === 'invite_check.json') { + $result = check_account_invite($_REQUEST['invite_code']); + json_return_and_die($result); + } + if($cmd === 'email_check.json') { $result = check_account_email($_REQUEST['email']); json_return_and_die($result); -- cgit v1.2.3