2
0
mirror of https://git.coolaj86.com/coolaj86/greenlock-cli.js synced 2025-02-22 19:28:05 +00:00
This commit is contained in:
AJ ONeal 2016-08-09 22:55:43 -04:00
parent e1dfdff786
commit b068152fb9

View File

@ -13,18 +13,15 @@ module.exports.create = function (defaults) {
// servers should use a database of some sort
, _challenges: {}
, set: function (args, domain, token, secret, cb) {
console.log('bloh 1');
handlers._challenges[token] = secret;
cb(null);
}
, get: function (args, domain, token, cb) {
console.log('bloh 2');
// TODO keep in mind that, generally get args are just args.domains
// and it is disconnected from the flow of setChallenge and removeChallenge
cb(null, handlers._challenges[token]);
}
, remove: function (args, domain, token, cb) {
console.log('balh 3');
delete handlers._challenges[token];
cb(null);
}