forked from extern/egroupware
Fixed last login information not being updated
This commit is contained in:
parent
aaedec89bf
commit
df7ef82a06
@ -56,13 +56,13 @@
|
|||||||
return $encrypted_passwd;
|
return $encrypted_passwd;
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_lastlogin($account_lid, $ip)
|
function update_lastlogin($account_id, $ip)
|
||||||
{
|
{
|
||||||
global $phpgw;
|
global $phpgw;
|
||||||
|
|
||||||
$phpgw->db->query("update phpgw_accounts set account_lastloginfrom='"
|
$phpgw->db->query("update phpgw_accounts set account_lastloginfrom='"
|
||||||
. "$ip', account_lastlogin='" . time()
|
. "$ip', account_lastlogin='" . time()
|
||||||
. "' where account_lid='$login'",__LINE__,__FILE__);
|
. "' where account_id='$account_id'",__LINE__,__FILE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -234,7 +234,7 @@
|
|||||||
. "$login','" . $this->getuser_ip() . "','" . time()
|
. "$login','" . $this->getuser_ip() . "','" . time()
|
||||||
. "','') ",__LINE__,__FILE__);
|
. "','') ",__LINE__,__FILE__);
|
||||||
|
|
||||||
$phpgw->auth->update_lastlogin($login,$this->getuser_ip());
|
$phpgw->auth->update_lastlogin($this->account_id,$this->getuser_ip());
|
||||||
|
|
||||||
return $this->sessionid;
|
return $this->sessionid;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user