aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-03 23:58:52 -0700
committerzotlabs <mike@macgirvin.com>2017-09-03 23:58:52 -0700
commitba4f75ba1976a1306ba96c4d5bffc8728d4fc23b (patch)
tree4beb533a156104d3d80a4415081cc62623cb56fc /Zotlabs
parentfc62f07a089daf698953e6e4197668fbf8aebef9 (diff)
downloadvolse-hubzilla-ba4f75ba1976a1306ba96c4d5bffc8728d4fc23b.tar.gz
volse-hubzilla-ba4f75ba1976a1306ba96c4d5bffc8728d4fc23b.tar.bz2
volse-hubzilla-ba4f75ba1976a1306ba96c4d5bffc8728d4fc23b.zip
also error if no security context
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Zot/Auth.php8
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,