Merge pull request #129 from MicMee/master

to flag failed auth attempts in db table hubloc as hubloc_receive_error
This commit is contained in:
friendica 2013-09-12 02:26:56 -07:00
commit ca1b8dbe1e
2 changed files with 8 additions and 1 deletions

View file

@ -903,10 +903,11 @@ function zot_import($arr) {
$result = process_channel_sync_delivery($i['notify']['sender'],$arr,$deliveries);
}
}
if($result)
if($result){
$return = array_merge($return,$result);
}
}
}
return $return;

View file

@ -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.