aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Login.php
blob: ae35b922fd4b6dfaf88e55c5ab72c5d25620cd2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
namespace Zotlabs\Module;


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