forked from extern/egroupware
fix package install was generating md5 hased passwords for header
This commit is contained in:
parent
705c5b9f56
commit
4ced6407c6
@ -1,13 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* eGgroupWare setup - create or update the header.inc.php
|
||||
* EGgroupware setup - create or update the header.inc.php
|
||||
*
|
||||
* @link http://www.egroupware.org
|
||||
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @package setup
|
||||
* @copyright (c) 2007-16 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @copyright (c) 2007-19 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
use EGroupware\Api;
|
||||
@ -366,6 +365,6 @@ class setup_cmd_header extends setup_cmd
|
||||
{
|
||||
$var =& $var[$name];
|
||||
}
|
||||
if (true) $var = strpos($name,'passw') !== false ? md5($value) : $value;
|
||||
if (true) $var = $value;
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,6 @@
|
||||
* @author Miles Lott <milos@groupwhere.org>
|
||||
* @author Tony Puglisi (Angles)
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
use EGroupware\Api;
|
||||
@ -212,7 +211,10 @@ class setup_header
|
||||
$var = Array();
|
||||
foreach($egw_info['server'] as $name => $value)
|
||||
{
|
||||
if ($name == 'header_admin_password' && $value && !self::is_hashed($value)) $value = Api\Auth::encrypt_sql($value, $most_secure_pw_hash);
|
||||
if ($name == 'header_admin_password' && $value && !self::is_hashed($value))
|
||||
{
|
||||
$value = Api\Auth::encrypt_sql($value, $most_secure_pw_hash);
|
||||
}
|
||||
if ($name == 'versions')
|
||||
{
|
||||
$name = 'mcrypt_version';
|
||||
|
Loading…
Reference in New Issue
Block a user