From 56085e8acf988289de3820889cef42844ac0ec77 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Wed, 21 Jan 2004 23:10:05 +0000 Subject: [PATCH] Fix bad function call for md5 passwords --- phpgwapi/inc/class.auth_sql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.auth_sql.inc.php b/phpgwapi/inc/class.auth_sql.inc.php index 685e2c5297..746d35bcf2 100644 --- a/phpgwapi/inc/class.auth_sql.inc.php +++ b/phpgwapi/inc/class.auth_sql.inc.php @@ -246,7 +246,7 @@ $pwd_check = ''; 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 . "'," . "account_lastpwd_change='" . time() . "' WHERE account_id='" . $account_id . "'" . $pwd_check,__LINE__,__FILE__);