Skip to content

Commit

Permalink
Improve UI
Browse files Browse the repository at this point in the history
  • Loading branch information
mpgn committed Feb 26, 2024
1 parent 8903e4f commit 7878252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PingCastle-Notify.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Function Send_WebHook($body, $connector) {
# function update body
Function Update_Body($body, $connector) {
if ($connector -eq "slack") {
$body['attachments'][0]['text'] = "Domain *" + $domainName + "* - " + $dateScan.ToString("dd/MM/yyyy") + " - *" + $str_total_point + "* : "
$body['attachments'][0]['text'] = "Domain *" + $domainName + "* - " + $dateScan.ToString("dd/MM/yyyy") + " - *Global Score " + [string]$total_point + "* : "
$body['attachments'][0]['fields'][0]['value'] = $str_trusts.Split(" ")[1].Trim() + " Trusts: " + $str_trusts.Split(" ")[0].Trim()
$body['attachments'][0]['fields'][1]['value'] = $str_staleObject.Split(" ")[1].Trim() + " Stale Object: " + $str_staleObject.Split(" ")[0].Trim()
$body['attachments'][0]['fields'][2]['value'] = $str_privilegeAccount.Split(" ")[1].Trim() + " Privileged Group: " + $str_privilegeAccount.Split(" ")[0].Trim()
Expand Down

0 comments on commit 7878252

Please sign in to comment.