mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-24 14:59:39 -05:00
Update server/notification-providers/dingding.js
Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
This commit is contained in:
parent
2d471a5e84
commit
6e04ec436e
@ -59,7 +59,7 @@ class DingDing extends NotificationProvider {
|
|||||||
/** DingDing sign */
|
/** DingDing sign */
|
||||||
sign(timestamp,secretKey) {
|
sign(timestamp,secretKey) {
|
||||||
return Crypto
|
return Crypto
|
||||||
.createHmac("sha256",Buffer.from(secretKey, 'utf8'))
|
.createHmac("sha256", Buffer.from(secretKey, 'utf8'))
|
||||||
.update(Buffer.from(`${timestamp}\n${secretKey}`, 'utf8'))
|
.update(Buffer.from(`${timestamp}\n${secretKey}`, 'utf8'))
|
||||||
.digest("base64");
|
.digest("base64");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user