mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 10:35:15 +00:00
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:
commit
ca1b8dbe1e
2 changed files with 8 additions and 1 deletions
|
@ -903,8 +903,9 @@ function zot_import($arr) {
|
|||
$result = process_channel_sync_delivery($i['notify']['sender'],$arr,$deliveries);
|
||||
}
|
||||
}
|
||||
if($result)
|
||||
if($result){
|
||||
$return = array_merge($return,$result);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue