Fixed last login information not being updated

This commit is contained in:
jengo 2001-02-07 13:19:09 +00:00
parent aaedec89bf
commit df7ef82a06
2 changed files with 3 additions and 3 deletions

View File

@ -56,13 +56,13 @@
return $encrypted_passwd;
}
function update_lastlogin($account_lid, $ip)
function update_lastlogin($account_id, $ip)
{
global $phpgw;
$phpgw->db->query("update phpgw_accounts set account_lastloginfrom='"
. "$ip', account_lastlogin='" . time()
. "' where account_lid='$login'",__LINE__,__FILE__);
. "' where account_id='$account_id'",__LINE__,__FILE__);
}
}
?>

View File

@ -234,7 +234,7 @@
. "$login','" . $this->getuser_ip() . "','" . time()
. "','') ",__LINE__,__FILE__);
$phpgw->auth->update_lastlogin($login,$this->getuser_ip());
$phpgw->auth->update_lastlogin($this->account_id,$this->getuser_ip());
return $this->sessionid;
}