miroir de
https://github.com/therootcompany/greenlock.js.git
synchronisé 2024-11-16 17:29:00 +00:00
Added missing logic to handle undefined le.challenge.get exceptions
Cette révision appartient à :
Parent
2451fafa25
révision
1c95d7b4ff
2
index.js
2
index.js
@ -254,7 +254,7 @@ LE.create = function (le) {
|
||||
throw new Error("le.challenge.set receives the wrong number of arguments."
|
||||
+ " You must define setChallenge as function (opts, domain, key, val, cb) { }");
|
||||
}
|
||||
if (4 !== le.challenge.get.length) {
|
||||
if (4 !== le.challenge.get.length || le.challenge.get === undefined) {
|
||||
throw new Error("le.challenge.get receives the wrong number of arguments."
|
||||
+ " You must define getChallenge as function (opts, domain, key, cb) { }");
|
||||
}
|
||||
|
Chargement…
x
Référencer dans un nouveau ticket
Bloquer un utilisateur