diff options
author | friendica <info@friendica.com> | 2012-08-27 21:17:46 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-08-27 21:17:46 -0700 |
commit | 7fad83cea4dd134df6dacf8248ef6947dca7f100 (patch) | |
tree | c4a8174b8dac64949e874b9149456e2541050f1c /mod/zregister.php | |
parent | 8c3c3d5fd7acc5df0aec9c10f8bdd89bedd2060a (diff) | |
download | volse-hubzilla-7fad83cea4dd134df6dacf8248ef6947dca7f100.tar.gz volse-hubzilla-7fad83cea4dd134df6dacf8248ef6947dca7f100.tar.bz2 volse-hubzilla-7fad83cea4dd134df6dacf8248ef6947dca7f100.zip |
Now logging in with Red zaccount/zentity instead of Friendica user. Yay. Most existing Friendica functionality is now stuffed since the Red structures are quite different.
Diffstat (limited to 'mod/zregister.php')
-rw-r--r-- | mod/zregister.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/mod/zregister.php b/mod/zregister.php index a9a622213..478921c3f 100644 --- a/mod/zregister.php +++ b/mod/zregister.php @@ -75,7 +75,6 @@ function zregister_post(&$a) { } require_once('include/security.php'); - authenticate_success($result['account'],true,true); $using_invites = intval(get_config('system','invitation_only')); $num_invites = intval(get_config('system','number_invites')); @@ -90,7 +89,6 @@ function zregister_post(&$a) { $res = send_verification_email($result['email'],$result['password']); if($res) { info( t('Registration successful. Please check your email for validation instructions.') . EOL ) ; - goaway(z_root()); } } elseif($policy == REGISTER_APPROVE) { @@ -103,7 +101,16 @@ function zregister_post(&$a) { } goaway(z_root()); } - return; + + authenticate_success($result['account'],true,false,true); + + if(! strlen($next_page = get_config('system','workflow_register_next'))) + $next_page = 'zentity'; + + $_SESSION['workflow'] = true; + + goaway(z_root() . '/' . $next_page); + } |