We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdf888d commit 21f4ecaCopy full SHA for 21f4eca
chatwoot/hooks.php
@@ -51,9 +51,7 @@ function hook_chatwoot_footer_output($vars) {
51
52
// Get client ID
53
if ($vars['clientsdetails']['id']) {
54
- $hmac = hash_hmac("sha256", $id, "nQ1ayoG5bu580LZkSxMJiO2");
55
- $clientid = $hmac;
56
-
+ $clientid = $vars['clientsdetails']['id'];
57
}
58
59
// Get client email
@@ -77,8 +75,6 @@ function hook_chatwoot_footer_output($vars) {
77
75
<script>
78
76
window.onload = (event) => {
79
window.\$chatwoot.setUser('$clientid', {
80
- email: '$clientemail',
81
- name: '$clientname',
82
avatar_url: '$gravatarurl',
83
})
84
window.\$chatwoot.setLabel('$chatwoot_label')
0 commit comments