forked from extern/egroupware
fix for BUG# 100527
This commit is contained in:
parent
53cd1ab670
commit
225e7f6a82
@ -74,8 +74,8 @@
|
|||||||
|
|
||||||
$encrypted_passwd = md5($new_passwd);
|
$encrypted_passwd = md5($new_passwd);
|
||||||
|
|
||||||
$GLOBALS['phpgw']->db->query("update phpgw_accounts set account_pwd='" . md5($new_passwd) . "',"
|
$GLOBALS['phpgw']->db->query("UPDATE phpgw_accounts SET account_pwd='" . md5($new_passwd) . "',"
|
||||||
. "account_lastpwd_change='" . time() . "' where account_id='" . $account_id . "'",__LINE__,__FILE__);
|
. "account_lastpwd_change='" . time() . "' WHERE account_id='" . $account_id . "'",__LINE__,__FILE__);
|
||||||
|
|
||||||
$GLOBALS['phpgw']->session->appsession('password','phpgwapi',$new_passwd);
|
$GLOBALS['phpgw']->session->appsession('password','phpgwapi',$new_passwd);
|
||||||
|
|
||||||
@ -84,13 +84,13 @@
|
|||||||
|
|
||||||
function update_lastlogin($account_id, $ip)
|
function update_lastlogin($account_id, $ip)
|
||||||
{
|
{
|
||||||
$GLOBALS['phpgw']->db->query("select account_lastlogin from phpgw_accounts where account_id='$account_id'",__LINE__,__FILE__);
|
$GLOBALS['phpgw']->db->query("SELECT account_lastlogin FROM phpgw_accounts WHERE account_id='$account_id'",__LINE__,__FILE__);
|
||||||
$GLOBALS['phpgw']->db->next_record();
|
$GLOBALS['phpgw']->db->next_record();
|
||||||
$this->previous_login = $phpgw->db->f('account_lastlogin');
|
$this->previous_login = $GLOBALS['phpgw']->db->f('account_lastlogin');
|
||||||
|
|
||||||
$GLOBALS['phpgw']->db->query("update phpgw_accounts set account_lastloginfrom='"
|
$GLOBALS['phpgw']->db->query("UPDATE phpgw_accounts SET account_lastloginfrom='"
|
||||||
. "$ip', account_lastlogin='" . time()
|
. "$ip', account_lastlogin='" . time()
|
||||||
. "' where account_id='$account_id'",__LINE__,__FILE__);
|
. "' WHERE account_id='$account_id'",__LINE__,__FILE__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user