aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Regate.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-04-08 14:19:29 +0000
committerMax Kostikov <max@kostikov.co>2021-04-08 14:19:29 +0000
commitb5620cb79443fcbf1820341bce05fadbb0b124be (patch)
treef9842fdf61038c023bd6088576f40f893850256c /Zotlabs/Module/Regate.php
parent0d10f5ba65d209c76f811424eb255d9e4228c6b8 (diff)
parentcf62e07bec8ffe6b9e5c92d56c13ee3cbe06b5bf (diff)
downloadvolse-hubzilla-b5620cb79443fcbf1820341bce05fadbb0b124be.tar.gz
volse-hubzilla-b5620cb79443fcbf1820341bce05fadbb0b124be.tar.bz2
volse-hubzilla-b5620cb79443fcbf1820341bce05fadbb0b124be.zip
Merge branch 'dev' into 'dev'
Dev sync See merge request kostikov/core!1
Diffstat (limited to 'Zotlabs/Module/Regate.php')
-rw-r--r--Zotlabs/Module/Regate.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/Zotlabs/Module/Regate.php b/Zotlabs/Module/Regate.php
index d51927de1..6d9d5dc28 100644
--- a/Zotlabs/Module/Regate.php
+++ b/Zotlabs/Module/Regate.php
@@ -139,18 +139,22 @@ class Regate extends \Zotlabs\Web\Controller {
// zar_log($msg . ':' . print_r($cra, true));
zar_log($msg . ' ' . $cra['account']['account_email']
. ' ' . $cra['account']['account_language']);
+
$nextpage = 'new_channel';
- $auto_create = (get_config('system','auto_channel_create') ? true : false);
+ $auto_create = get_config('system','auto_channel_create',1);
if($auto_create) {
// prepare channel creation
if($reonar['chan.name'])
- set_aconfig($cra['account']['account_id'],
- 'register','channel_name',$reonar['chan.name']);
+ set_aconfig($cra['account']['account_id'], 'register', 'channel_name', $reonar['chan.name']);
+
if($reonar['chan.did1'])
- set_aconfig($cra['account']['account_id'],
- 'register','channel_address',$reonar['chan.did1']);
+ set_aconfig($cra['account']['account_id'], 'register', 'channel_address', $reonar['chan.did1']);
+
+ $permissions_role = get_config('system','default_permissions_role');
+ if($permissions_role)
+ set_aconfig($cra['account']['account_id'], 'register', 'permissions_role', $permissions_role);
}
authenticate_success($cra['account'],null,true,false,true);