refactor the 'where does the register link point?' logic

This commit is contained in:
zotlabs
2018-05-14 19:19:25 -07:00
parent 301e405769
commit c8fc3ad7cd
5 changed files with 43 additions and 18 deletions

View File

@@ -10,7 +10,7 @@ class Login extends \Zotlabs\Web\Controller {
if(remote_channel() && $_SESSION['atoken'])
goaway(z_root());
return login((\App::$config['system']['register_policy'] == REGISTER_CLOSED) ? false : true);
return login(true);
}
}