Skip to content

Commit 21f4eca

Browse files
authored
Update hooks.php
1 parent fdf888d commit 21f4eca

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

chatwoot/hooks.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ function hook_chatwoot_footer_output($vars) {
5151

5252
// Get client ID
5353
if ($vars['clientsdetails']['id']) {
54-
$hmac = hash_hmac("sha256", $id, "nQ1ayoG5bu580LZkSxMJiO2");
55-
$clientid = $hmac;
56-
54+
$clientid = $vars['clientsdetails']['id'];
5755
}
5856

5957
// Get client email
@@ -77,8 +75,6 @@ function hook_chatwoot_footer_output($vars) {
7775
<script>
7876
window.onload = (event) => {
7977
window.\$chatwoot.setUser('$clientid', {
80-
email: '$clientemail',
81-
name: '$clientname',
8278
avatar_url: '$gravatarurl',
8379
})
8480
window.\$chatwoot.setLabel('$chatwoot_label')

0 commit comments

Comments
 (0)