diff options
author | redmatrix <git@macgirvin.com> | 2016-07-20 17:55:40 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-07-20 17:57:17 -0700 |
commit | bc8c74eb422387a5537eb923c90a34c1196ce568 (patch) | |
tree | 4f8ba641908fd18cc810ee0086684a4041062231 /Zotlabs/Module/Login.php | |
parent | eac35c05e9059ba57aefc878cc669eb0efbbd086 (diff) | |
download | volse-hubzilla-bc8c74eb422387a5537eb923c90a34c1196ce568.tar.gz volse-hubzilla-bc8c74eb422387a5537eb923c90a34c1196ce568.tar.bz2 volse-hubzilla-bc8c74eb422387a5537eb923c90a34c1196ce568.zip |
sort out some of the authentication mess - with luck this may fix the DAV auth issue which I simply could not duplicate or find a reason for.
Diffstat (limited to 'Zotlabs/Module/Login.php')
-rw-r--r-- | Zotlabs/Module/Login.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Module/Login.php b/Zotlabs/Module/Login.php index ff75e5268..ae35b922f 100644 --- a/Zotlabs/Module/Login.php +++ b/Zotlabs/Module/Login.php @@ -7,6 +7,9 @@ class Login extends \Zotlabs\Web\Controller { function get() { if(local_channel()) goaway(z_root()); + if(remote_channel() && $_SESSION['atoken']) + goaway(z_root()); + return login((\App::$config['system']['register_policy'] == REGISTER_CLOSED) ? false : true); } |