2012-06-18 Vanessa Gil <vanessa.gil@artica.es>
* include/functions_config.php: Fixed bug: Notice to change Admin password is displayed for other users. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6571 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
fde91c5ff1
commit
5baf5a0b91
|
@ -1,3 +1,8 @@
|
|||
2012-06-18 Vanessa Gil <vanessa.gil@artica.es>
|
||||
|
||||
* include/functions_config.php: Fixed bug: Notice to change
|
||||
Admin password is displayed for other users.
|
||||
|
||||
2012-06-18 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/auth/ldap.php, include/javascript/pandora.js,
|
||||
|
|
|
@ -684,6 +684,8 @@ function config_check (){
|
|||
// is done by an AJAX request. Better solutions could be implemented in the future :-)
|
||||
|
||||
// Check default password for "admin"
|
||||
$is_admin = db_get_value('is_admin', 'tusuario', 'id_user', $config['id_user']);
|
||||
if ($is_admin) {
|
||||
$hashpass = db_get_sql ("SELECT password FROM tusuario WHERE id_user = 'admin'");
|
||||
if ($hashpass == "1da7ee7d45b96d0e1f45ee4ee23da560"){
|
||||
$config["alert_cnt"]++;
|
||||
|
@ -691,6 +693,7 @@ function config_check (){
|
|||
array('message' => __('Default password for "Admin" user has not been changed.').'</h3>'.'<p>'.__('Please change the default password because is a common vulnerability reported.'),
|
||||
'no_close' => true, 'force_style' => 'color: #000000 !important'), '', true);
|
||||
}
|
||||
}
|
||||
|
||||
if (!is_writable ("attachment")){
|
||||
$config["alert_cnt"]++;
|
||||
|
|
Loading…
Reference in New Issue