Fix failure to select sql mode for password encryption;

This commit is contained in:
Miles Lott 2004-01-29 03:28:00 +00:00
parent dd148e2cf9
commit d456632ae3

View File

@ -1304,13 +1304,13 @@
@abstract uses the encryption type set in setup and calls the appropriate encryption functions @abstract uses the encryption type set in setup and calls the appropriate encryption functions
@param $password password to encrypt @param $password password to encrypt
*/ */
function encrypt_password($password) function encrypt_password($password,$sql=False)
{ {
if(!@is_object($GLOBALS['phpgw']->auth)) if(!@is_object($GLOBALS['phpgw']->auth))
{ {
$GLOBALS['phpgw']->auth = CreateObject('phpgwapi.auth'); $GLOBALS['phpgw']->auth = CreateObject('phpgwapi.auth');
} }
return $GLOBALS['phpgw']->auth->encrypt_password($password); return $GLOBALS['phpgw']->auth->encrypt_password($password,$sql);
} }
/*! /*!