From: Miles L. <mi...@gr...> - 2004-01-31 12:45:25
|
That was why it was ripped, or at least one reason. It was fixed already, but thanks! Piers Wren wrote: > Hi All, > > I managed to grab a copy of RC3 before it was ripped from the servers > and also found a pretty serious bug - it wasn't creating passwords > properly for SQL auth'd accounts. > > Anyhow, attached is my fix. Works for me, may work for you too. > > Cheers, > -Piers. > > > > ------------------------------------------------------------------------ > > diff -Naur ~/tmp/phpgwapi/inc/class.auth.inc.php ./egroupware/phpgwapi/inc/class.auth.inc.php > --- /home/piers/tmp/phpgwapi/inc/class.auth.inc.php 2004-01-26 14:01:54.000000000 +1100 > +++ ./egroupware/phpgwapi/inc/class.auth.inc.php 2004-01-29 14:16:28.000000000 +1100 > @@ -70,7 +70,7 @@ > */ > function encrypt_password($password,$sql=False) > { > - if($sql) > + if ($GLOBALS['phpgw_info']['server']['auth_type'] == 'sql') > { > return $this->encrypt_sql($password); > } > |