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