Fix bad function call for md5 passwords

This commit is contained in:
Miles Lott 2004-01-21 23:10:05 +00:00
parent e8e338c66a
commit 56085e8acf

View File

@ -246,7 +246,7 @@
$pwd_check = ''; $pwd_check = '';
if(!$admin) if(!$admin)
{ {
$pwd_check = " AND account_pwd='" . $GLOBALS['phpgw']->common->sql_encrypt_password($old_passwd) . "'"; $pwd_check = " AND account_pwd='" . $GLOBALS['phpgw']->common->encrypt_sql($old_passwd) . "'";
} }
$this->db->query("UPDATE phpgw_accounts SET account_pwd='" . $encrypted_passwd . "'," $this->db->query("UPDATE phpgw_accounts SET account_pwd='" . $encrypted_passwd . "',"
. "account_lastpwd_change='" . time() . "' WHERE account_id='" . $account_id . "'" . $pwd_check,__LINE__,__FILE__); . "account_lastpwd_change='" . time() . "' WHERE account_id='" . $account_id . "'" . $pwd_check,__LINE__,__FILE__);