mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 20:10:53 +03:00
Update server/notification-providers/dingding.js
Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
This commit is contained in:
parent
2d471a5e84
commit
6e04ec436e
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class DingDing extends NotificationProvider {
|
|||
/** DingDing sign */
|
||||
sign(timestamp,secretKey) {
|
||||
return Crypto
|
||||
.createHmac("sha256",Buffer.from(secretKey, 'utf8'))
|
||||
.createHmac("sha256", Buffer.from(secretKey, 'utf8'))
|
||||
.update(Buffer.from(`${timestamp}\n${secretKey}`, 'utf8'))
|
||||
.digest("base64");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue