aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Zot/Auth.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-12-08 19:43:49 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-12-08 19:43:49 -0800
commit5735cad45795d1f810085a079106f9fea056bcca (patch)
treecf4f537fbc58ac12db3f726ee0610915734bc9e0 /Zotlabs/Zot/Auth.php
parent648f972cf04660139810329e777259e254537bc1 (diff)
downloadvolse-hubzilla-5735cad45795d1f810085a079106f9fea056bcca.tar.gz
volse-hubzilla-5735cad45795d1f810085a079106f9fea056bcca.tar.bz2
volse-hubzilla-5735cad45795d1f810085a079106f9fea056bcca.zip
remove extra debug logging and ensure we don't try to authenticate without a hubloc
Diffstat (limited to 'Zotlabs/Zot/Auth.php')
-rw-r--r--Zotlabs/Zot/Auth.php14
1 files changed, 5 insertions, 9 deletions
diff --git a/Zotlabs/Zot/Auth.php b/Zotlabs/Zot/Auth.php
index 950a7593a..d0374ad7e 100644
--- a/Zotlabs/Zot/Auth.php
+++ b/Zotlabs/Zot/Auth.php
@@ -22,7 +22,6 @@ class Auth {
function __construct($req) {
- logger('construct');
$this->ret = array('success' => false);
$this->success = false;
@@ -41,14 +40,11 @@ class Auth {
$x = $this->GetHublocs($this->address);
- logger('hublocs');
-
- foreach($x as $xx) {
-
- logger('verify');
-
- if($this->Verify($c,$xx))
- break;
+ if($x) {
+ foreach($x as $xx) {
+ if($this->Verify($c,$xx))
+ break;
+ }
}
/**