[freeside-commits] branch master updated. dd03181dde5f641d81b5e50643bbd0f81ca09877
Carl J. Adams-Collier
cjac at 420.am
Thu Sep 18 11:11:02 PDT 2014
The branch, master has been updated
via dd03181dde5f641d81b5e50643bbd0f81ca09877 (commit)
from 705de04c6659330be111fbbd5149ae5587402196 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit dd03181dde5f641d81b5e50643bbd0f81ca09877
Author: C.J. Adams-Collier <cjac at colliertech.org>
Date: Thu Sep 18 11:10:57 2014 -0700
FS RT #30779 - now logging self service authentication failure for processing by fail2ban
diff --git a/fs_selfservice/FS-SelfService/cgi/selfservice.cgi b/fs_selfservice/FS-SelfService/cgi/selfservice.cgi
index 2b4bb43..5c0190f 100755
--- a/fs_selfservice/FS-SelfService/cgi/selfservice.cgi
+++ b/fs_selfservice/FS-SelfService/cgi/selfservice.cgi
@@ -124,7 +124,13 @@ unless ( $nologin_actions{$action} ) {
'email' => $email,
'password' => $password
);
- $session_id = $login_rv->{'session_id'};
+ if ( $login_rv->{'error'} ) {
+ my $ip = $cgi->remote_addr();
+ warn("login failure [email $email] [ip $ip]");
+ } else {
+ #successful login
+ $session_id = $login_rv->{'session_id'};
+ }
} else {
-----------------------------------------------------------------------
Summary of changes:
fs_selfservice/FS-SelfService/cgi/selfservice.cgi | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list