From 22282647720da3f84759130655a3095642d931fe Mon Sep 17 00:00:00 2001 From: Michael Meer Date: Wed, 11 Sep 2013 13:59:45 +0200 Subject: flag failed auth attempts in DB table hubloc --- mod/post.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mod/post.php') 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. -- cgit v1.2.3