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.

This commit is contained in:
redmatrix
2016-07-20 17:55:40 -07:00
parent eac35c05e9
commit bc8c74eb42
13 changed files with 132 additions and 195 deletions

View File

@@ -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);
}