diff options
author | Michael Meer <michael@meer.name> | 2013-09-11 13:59:45 +0200 |
---|---|---|
committer | Michael Meer <michael@meer.name> | 2013-09-11 13:59:45 +0200 |
commit | 22282647720da3f84759130655a3095642d931fe (patch) | |
tree | a5056f41dfbdab5a8d2ed6a78a5bae2aa8b6b140 | |
parent | 5fbe4c187695a02118039e3056ee471e93c858b1 (diff) | |
download | volse-hubzilla-22282647720da3f84759130655a3095642d931fe.tar.gz volse-hubzilla-22282647720da3f84759130655a3095642d931fe.tar.bz2 volse-hubzilla-22282647720da3f84759130655a3095642d931fe.zip |
flag failed auth attempts in DB table hubloc
-rw-r--r-- | include/zot.php | 4 | ||||
-rw-r--r-- | mod/post.php | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php index dd6d1842c..ee4fe940f 100644 --- a/include/zot.php +++ b/include/zot.php @@ -903,8 +903,10 @@ function zot_import($arr) { $result = process_channel_sync_delivery($i['notify']['sender'],$arr,$deliveries); } } - if($result) + if($result){ + logger('delivery result: ' . print_r($result,tue) ); $return = array_merge($return,$result); + } } } diff --git a/mod/post.php b/mod/post.php index 70dd4dc19..7510a028f 100644 --- a/mod/post.php +++ b/mod/post.php @@ -127,6 +127,12 @@ function post_init(&$a) { info(sprintf( t('Welcome %s. Remote authentication successful.'),$x[0]['xchan_name'])); logger('mod_zot: auth success from ' . $x[0]['xchan_addr'] . ' for ' . $webbie); + } else { + logger('mod_zot: still not authenticated: ' . $x[0]['xchan_addr']); + q("update hubloc set hubloc_status = ( hubloc_status ^ %d) where hubloc_addr = '%s'", + intval(HUBLOC_RECEIVE_ERROR), + $x[0][xchan_addr] + ); } // FIXME - we really want to save the return_url in the session before we visit rmagic. |