diff options
author | Hilmar R <u02@u29lx193> | 2021-01-24 16:44:58 +0100 |
---|---|---|
committer | Hilmar R <u02@u29lx193> | 2021-01-24 16:44:58 +0100 |
commit | 0a16674f6e6b96b99b1bc004a62684b7cc2a4694 (patch) | |
tree | 9d225db7a46f982436b000bf3227d1dfece99021 /Zotlabs/Module | |
parent | 9365b8691e337f9ae9c000be8339bd325811a526 (diff) | |
download | volse-hubzilla-0a16674f6e6b96b99b1bc004a62684b7cc2a4694.tar.gz volse-hubzilla-0a16674f6e6b96b99b1bc004a62684b7cc2a4694.tar.bz2 volse-hubzilla-0a16674f6e6b96b99b1bc004a62684b7cc2a4694.zip |
auto channel create adjustments, zar log reg msgs
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Regate.php | 14 | ||||
-rw-r--r-- | Zotlabs/Module/Register.php | 2 |
2 files changed, 12 insertions, 4 deletions
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 { diff --git a/Zotlabs/Module/Register.php b/Zotlabs/Module/Register.php index d0a41b3c2..60d08caf0 100644 --- a/Zotlabs/Module/Register.php +++ b/Zotlabs/Module/Register.php @@ -363,6 +363,8 @@ class Register extends Controller { dbesc($didnew), intval($lid[0]['reg_id']) ); + zar_log( 'ZAR0239A ' . t('New register request') . ' d' . $didnew . ', ' + . $regdelay . ' - ' . $regexpire); // notice( 'ZAR0239I,' . t( 'Your didital id is' ) . EOL . 'd' . $didnew . EOL $_SESSION['zar']['msg'] = ( 'ZAR0239I,' . t( 'Your didital id is' ) . EOL . 'd' . $didnew . EOL . t('and your pin for is') . ' ' . $pass2 . EOL |