diff options
author | friendica <info@friendica.com> | 2012-08-16 03:16:55 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-08-16 03:16:55 -0700 |
commit | 434bcfef8ba816805df29736efb36f8c95c20769 (patch) | |
tree | f17a7d5c609b0160fcc908df30a0ee5fa045920f /mod | |
parent | adba0bd98ac8c3fd5d2210e5e14f6a3ebfb00cd4 (diff) | |
download | volse-hubzilla-434bcfef8ba816805df29736efb36f8c95c20769.tar.gz volse-hubzilla-434bcfef8ba816805df29736efb36f8c95c20769.tar.bz2 volse-hubzilla-434bcfef8ba816805df29736efb36f8c95c20769.zip |
add invitiation logic to registrations - this is starting to look good
Diffstat (limited to 'mod')
-rw-r--r-- | mod/zregister.php | 6 |
1 files changed, 6 insertions, 0 deletions
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); |