From 8f8812b5ddf9cf83787b91e56af511a1e77dd9c8 Mon Sep 17 00:00:00 2001 From: Mark Nadal Date: Tue, 9 Sep 2014 01:59:51 -0600 Subject: [PATCH] ugh --- examples/social/sign.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/social/sign.js b/examples/social/sign.js index 3bf84701..fda98a75 100644 --- a/examples/social/sign.js +++ b/examples/social/sign.js @@ -25,14 +25,14 @@ gun.load('email/mark@accelsor.com') sign.server = function(req, res){ console.log("sign.server", req.headers, req.body); - res.emit('data', {ok: 1}); + /*res.emit('data', {ok: 1}); res.emit('data', {ok: 2}); res.emit('data', {ok: 3}); res.emit('data', {ok: 4}); setTimeout(function(){ res.emit('end', {ok: 5}); }, 5000); - return; + return;*/ if(!req.body || !req.body.email){ return res.emit('end', {err: "That email does not exist."}) } var user = gun.load('email/' + req.body.email, function(data){ // this callback is called the magazine, since it holds the clip console.log("data from key", data);