aboutsummaryrefslogtreecommitdiffstats
path: root/include/account.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-03 15:58:20 -0700
committerredmatrix <git@macgirvin.com>2016-07-03 15:58:20 -0700
commit57226b2e1378c2769709a2b2407249cc4e3b14f4 (patch)
treefbb6a4713b6ae9c5cb13ab47ffdb1d03a586c820 /include/account.php
parent17e161006a9ddbfbea3e0b6d5f7776ad7b8101e2 (diff)
parentf46eecc1e7585e64069bb18918a2db057a16c480 (diff)
downloadvolse-hubzilla-57226b2e1378c2769709a2b2407249cc4e3b14f4.tar.gz
volse-hubzilla-57226b2e1378c2769709a2b2407249cc4e3b14f4.tar.bz2
volse-hubzilla-57226b2e1378c2769709a2b2407249cc4e3b14f4.zip
Merge branch 'dev' into perms
Diffstat (limited to 'include/account.php')
-rw-r--r--include/account.php18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/account.php b/include/account.php
index caf12878e..c02a74928 100644
--- a/include/account.php
+++ b/include/account.php
@@ -499,11 +499,27 @@ function account_approve($hash) {
intval($register[0]['uid'])
);
+ // get a fresh copy after we've modified it.
+
+ $account = q("SELECT * FROM account WHERE account_id = %d LIMIT 1",
+ intval($register[0]['uid'])
+ );
+
+ if(! $account)
+ return $ret;
+
+
+
if(get_config('system','auto_channel_create') || UNO)
auto_channel_create($register[0]['uid']);
+ else {
+ $_SESSION['login_return_url'] = 'new_channel';
+ authenticate_success($account[0],true,true,false,true);
+ }
+
- info( t('Account verified. Please login.') . EOL );
+ // info( t('Account verified. Please login.') . EOL );
return true;
}