Merge branch 'ent-9254-13891-encriptar-contrasenas-en-replicacion-de-bbdd' into 'develop'

Ent 9254 13891 encriptar contrasenas en replicacion de bbdd

See merge request artica/pandorafms!5140
This commit is contained in:
Daniel Rodriguez 2022-10-21 10:42:16 +00:00
commit a3dc8be0e5
2 changed files with 22 additions and 1 deletions

View File

@ -1,6 +1,7 @@
<?php
$token_name = get_parameter('token_name', 0);
$no_boolean = (bool) get_parameter('no_boolean', 0);
$value_token = db_get_value(
'value',
@ -9,4 +10,8 @@ $value_token = db_get_value(
$token_name
);
echo (bool) $value_token;
if ($no_boolean === true) {
echo json_encode(io_safe_output($value_token));
} else {
echo (bool) $value_token;
}

View File

@ -2184,3 +2184,19 @@ $.fn.filterByText = function(textbox) {
});
});
};
function loadPasswordConfig(id, value) {
$.ajax({
url: "ajax.php",
data: {
page: "include/ajax/config.ajax",
token_name: `${value}`,
no_boolean: 1
},
type: "GET",
dataType: "json",
success: function(data) {
$(`#${id}`).val(data);
}
});
}