From 0a16674f6e6b96b99b1bc004a62684b7cc2a4694 Mon Sep 17 00:00:00 2001 From: Hilmar R Date: Sun, 24 Jan 2021 16:44:58 +0100 Subject: auto channel create adjustments, zar log reg msgs --- Zotlabs/Module/Regate.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'Zotlabs/Module/Regate.php') diff --git a/Zotlabs/Module/Regate.php b/Zotlabs/Module/Regate.php index 8ec559332..eabc1459e 100644 --- a/Zotlabs/Module/Regate.php +++ b/Zotlabs/Module/Regate.php @@ -131,9 +131,13 @@ class Regate extends \Zotlabs\Web\Controller { if ($cra['success']) { q("COMMIT"); - $msg = 'ZAR1238I' . t('Account successfull created'); - zar_log($msg . ':' . print_r($cra, true)); - $nextpage = '~'; + $msg = 'ZAR1238I ' . t('Account successfull created'); + // zar_log($msg . ':' . print_r($cra, true)); + zar_log($msg . ' ' . $cra['account']['account_email'] + . ' ' . $cra['account']['account_language']); + $nextpage = 'new_channel'; + + /* oops, ffu perhaps $auto_create = (get_config('system','auto_channel_create') ? true : false); if($auto_create) { @@ -144,9 +148,10 @@ class Regate extends \Zotlabs\Web\Controller { set_aconfig($cra['account']['account_id'], 'register','channel_address',$reonar['chan.did1']); } - + */ authenticate_success($cra['account'],null,true,false,true); + /* oops, ffu perhaps if($auto_create) { $new_channel = auto_channel_create($cra['account']['account_id']); if($new_channel['success']) { @@ -161,6 +166,7 @@ class Regate extends \Zotlabs\Web\Controller { ); } } + */ unset($_SESSION['login_return_url']); } else { -- cgit v1.2.3