aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Zotlabs/Module/Regate.php14
-rw-r--r--Zotlabs/Module/Register.php2
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