]> mj.ucw.cz Git - pciids.git/commitdiff
PciIds::Users: Update for Apache 2.4
authorThe PCI ID Mail Robot <pci-admins@ucw.cz>
Thu, 7 Jul 2016 17:51:17 +0000 (19:51 +0200)
committerThe PCI ID Mail Robot <pci-admins@ucw.cz>
Thu, 7 Jul 2016 17:51:17 +0000 (19:51 +0200)
remote_ip() no longer exists.

PciIds/Users.pm

index 6c660d2759c78f7f832026ea6219436353d977f3..bf6ced2b2becf4ba9753c4f8991f1013774887be 100644 (file)
@@ -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 );
        }