From ba4f75ba1976a1306ba96c4d5bffc8728d4fc23b Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 3 Sep 2017 23:58:52 -0700 Subject: also error if no security context --- Zotlabs/Zot/Auth.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Zotlabs/Zot') diff --git a/Zotlabs/Zot/Auth.php b/Zotlabs/Zot/Auth.php index afb7b1535..44f01174e 100644 --- a/Zotlabs/Zot/Auth.php +++ b/Zotlabs/Zot/Auth.php @@ -115,6 +115,14 @@ class Auth { $this->remote_hub = $hubloc['hubloc_url']; $this->dnt = 0; + if(! $this->sec) { + logger('missing security context.'); + if($this->test) + $this->Debug('missing security context.'); + return false; + } + + // check credentials and access // If they are already authenticated and haven't changed credentials, -- cgit v1.2.3