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
 | ||||
|   , _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); | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user