Skip to content

Commit b56b3ed

Browse files
committed
Update chatwoot.php
1 parent 5315b38 commit b56b3ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chatwoot/chatwoot.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function ($table) {
4343
}
4444

4545
if (!Capsule::table('mod_chatwoot')->where('setting', 'signing_hash')->first()) {
46-
Capsule::table('mod_chatwoot')->insert(['setting' => 'signing_hash', 'value' => 'jio23urfhjxo28ku2so90uso9u8sn']);
46+
Capsule::table('mod_chatwoot')->insert(['setting' => 'signing_hash', 'value' => md5(time())]);
4747
}
4848

4949
function chatwoot_config()
@@ -70,11 +70,11 @@ function chatwoot_config()
7070
'Description' => 'Paste your website widget JS code in this field. You can obtain it from your Chatwoot Dashboard > Inboxes > Website > Settings.<br /> For help, visit <a href="https://www.chatwoot.com/docs/product/channels/live-chat/create-website-channel" target="_blank">Chatwoot Docs</a>',
7171
],
7272
'chatwoot_verhash' => [
73-
'FriendlyName' => 'Verification Hash (Required)',
73+
'FriendlyName' => 'Secret Key (Required)',
7474
'Type' => 'text',
7575
'Size' => '',
7676
'Default' => '',
77-
'Description' => 'To make sure the conversations between the customers and the support agents are private and to disallow impersonation, you can setup identity validation in Chatwoot. <br />The key used to generate HMAC hash is unique for each webwidget and you can copy it from Inboxes -> Website Settings -> Configuration -> Identity Validation -> Copy the token shown there<br />To learn more about this, visit <a href="https://www.chatwoot.com/docs/product/channels/live-chat/sdk/identity-validation" target="_blank">Chatwoot Docs</a>',
77+
'Description' => 'To make sure the conversations between the customers and the support agents are private and to disallow impersonation, you can setup identity validation in Chatwoot. <br />The key used to generate HMAC hash is unique for each webwidget and you can copy it from Inboxes -> Widget Settings -> Configuration -> Identity Validation -> Copy the token shown there<br />To learn more about this, visit <a href="https://www.chatwoot.com/docs/product/channels/live-chat/sdk/identity-validation" target="_blank">Chatwoot Docs</a>',
7878
],
7979
'chatwoot_position' => [
8080
'FriendlyName' => 'Chat Box Position',
@@ -127,7 +127,7 @@ function chatwoot_activate()
127127

128128
if (!Capsule::table('mod_chatwoot')->where('setting', 'signing_hash')->first()) {
129129
try {
130-
Capsule::table('mod_chatwoot')->insert(['setting' => 'signing_hash', 'value' => 'jio23urfhjxo28ku2so90uso9u8sn']);
130+
Capsule::table('mod_chatwoot')->insert(['setting' => 'signing_hash', 'value' => md5(time())]);
131131
} catch (\Exception $e) {
132132
return ["status" => "error", "description" => "There was an error activating Chatwoot for WHMCS - Unable to create mod_chatwoot table: {$e->getMessage()}"];
133133
}

0 commit comments

Comments
 (0)