diff options
author | zotlabs <mike@macgirvin.com> | 2017-09-03 23:58:52 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-09-03 23:58:52 -0700 |
commit | ba4f75ba1976a1306ba96c4d5bffc8728d4fc23b (patch) | |
tree | 4beb533a156104d3d80a4415081cc62623cb56fc | |
parent | fc62f07a089daf698953e6e4197668fbf8aebef9 (diff) | |
download | volse-hubzilla-ba4f75ba1976a1306ba96c4d5bffc8728d4fc23b.tar.gz volse-hubzilla-ba4f75ba1976a1306ba96c4d5bffc8728d4fc23b.tar.bz2 volse-hubzilla-ba4f75ba1976a1306ba96c4d5bffc8728d4fc23b.zip |
also error if no security context
-rw-r--r-- | Zotlabs/Zot/Auth.php | 8 |
1 files changed, 8 insertions, 0 deletions
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, |