mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Fix failure to select sql mode for password encryption;
This commit is contained in:
parent
dd148e2cf9
commit
d456632ae3
@ -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);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user