From: The PCI ID Mail Robot Date: Thu, 7 Jul 2016 17:51:17 +0000 (+0200) Subject: PciIds::Users: Update for Apache 2.4 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=9b6bd0f872149aa811dee8ee0cdb0cd41bbe5224;p=pciids.git PciIds::Users: Update for Apache 2.4 remote_ip() no longer exists. --- diff --git a/PciIds/Users.pm b/PciIds/Users.pm index 6c660d2..bf6ced2 100644 --- a/PciIds/Users.pm +++ b/PciIds/Users.pm @@ -85,7 +85,7 @@ sub changePasswd( $$$$ ) { sub genAuthToken( $$$$$ ) { my( $tables, $id, $req, $rights, $name ) = @_; unless( defined $rights ) {#Just logged in - my $from = $req->connection()->remote_ip(); + my $from = $req->useragent_ip(); $tables->setLastLog( $id, $from ); $rights = $tables->rights( $id ); }