mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
#11684 Fixed automatic login functionality with loginhash
This commit is contained in:
parent
b072a8970e
commit
996f54ac30
@ -652,10 +652,11 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
|
|||||||
$row['title'] = __('Agent name');
|
$row['title'] = __('Agent name');
|
||||||
$row['data'] = html_print_anchor(
|
$row['data'] = html_print_anchor(
|
||||||
[
|
[
|
||||||
'href' => $urlAgent,
|
'href' => 'javascript:void(0)',
|
||||||
'title' => __('Click here for view this agent'),
|
'title' => __('Click here for view this agent'),
|
||||||
'class' => 'font_11',
|
'class' => 'font_11',
|
||||||
'content' => $cellName,
|
'content' => $cellName,
|
||||||
|
'onClick' => "sendHash('".$urlAgent."')",
|
||||||
],
|
],
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
@ -1017,7 +1018,7 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
|
|||||||
echo "
|
echo "
|
||||||
<script>
|
<script>
|
||||||
function sendHash(url) {
|
function sendHash(url) {
|
||||||
window.location = url+'&loginhash=auto&loginhash_data=".$hashdata.'&loginhash_user='.str_rot13($user)."';
|
window.open(url+'&loginhash=auto&loginhash_data=".$hashdata.'&loginhash_user='.str_rot13($user)."', '_blank');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user