diff --git a/phpgwapi/inc/class.auth_ldap.inc.php b/phpgwapi/inc/class.auth_ldap.inc.php index 466d6cfc02..625253433a 100644 --- a/phpgwapi/inc/class.auth_ldap.inc.php +++ b/phpgwapi/inc/class.auth_ldap.inc.php @@ -71,5 +71,14 @@ return $encrypted_passwd; } + + function update_lastlogin($account_lid, $ip) + { + global $phpgw; + + $phpgw->db->query("update phpgw_accounts set account_lastloginfrom='" + . "$ip', account_lastlogin='" . time() + . "' where account_lid='$login'",__LINE__,__FILE__); + } } ?> diff --git a/phpgwapi/inc/class.sessions.inc.php b/phpgwapi/inc/class.sessions.inc.php index 1bdf3a36e8..c7841494a8 100644 --- a/phpgwapi/inc/class.sessions.inc.php +++ b/phpgwapi/inc/class.sessions.inc.php @@ -115,7 +115,6 @@ global $phpgw_info, $phpgw; $this->clean_sessions(); - $login_array = explode("@", $login); $phpgw_info["user"]["userid"] = $login_array[0];