From d456632ae3a7c7063987bf9c1729b485a6e2f5c5 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Thu, 29 Jan 2004 03:28:00 +0000 Subject: [PATCH] Fix failure to select sql mode for password encryption; --- phpgwapi/inc/class.common.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 974c0908cb..1a88743bcd 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -1304,13 +1304,13 @@ @abstract uses the encryption type set in setup and calls the appropriate encryption functions @param $password password to encrypt */ - function encrypt_password($password) + function encrypt_password($password,$sql=False) { if(!@is_object($GLOBALS['phpgw']->auth)) { $GLOBALS['phpgw']->auth = CreateObject('phpgwapi.auth'); } - return $GLOBALS['phpgw']->auth->encrypt_password($password); + return $GLOBALS['phpgw']->auth->encrypt_password($password,$sql); } /*!