johntom / sailng

fork sailng using angular-sails v 0.10
MIT License
3 stars 0 forks source link

Problem Registering #2

Open sharepointoscar opened 10 years ago

sharepointoscar commented 10 years ago

When I register, I get an error:

error: TypeError:Object [object Object] has no method 'done' at Object.exports.register (/Applications/MAMP/htdocs/sailng/api/services/protocols/local.js:55:6) at Authenticator.passport.callback (/Applications/MAMP/htdocs/sailng/api/services/passport.js:197:28) at AuthController.callback (/Applications/MAMP/htdocs/sailng/api/controllers/AuthController.js:121:14) at routeTargetFnWrapper (/Applications/MAMP/htdocs/sailng/node_modules/sails/lib/router/bind.js:176:5) at callbacks (/Applications/MAMP/htdocs/sailng/node_modules/sails/node_modules/express/lib/router/index.js:164:37) at param (/Applications/MAMP/htdocs/sailng/node_modules/sails/node_modules/express/lib/router/index.js:138:11) at param (/Applications/MAMP/htdocs/sailng/node_modules/sails/node_modules/express/lib/router/index.js:135:11) at pass (/Applications/MAMP/htdocs/sailng/node_modules/sails/node_modules/express/lib/router/index.js:145:5) at nextRoute (/Applications/MAMP/htdocs/sailng/node_modules/sails/node_modules/express/lib/router/index.js:100:7) at callbacks (/Applications/MAMP/htdocs/sailng/node_modules/sails/node_modules/express/lib/router/index.js:167:11)

johntom commented 10 years ago

This has been reported and fixed by replacing done with exec. see repo https://github.com/johntom/sailngMongo

John

From: Oscar Medina [mailto:notifications@github.com] Sent: Thursday, June 12, 2014 11:14 AM To: johntom/sailng Subject: [sailng] Problem Registering (#2)

When I register, I get an error:

error: TypeError:Object [object Object] has no method 'done' at Object.exports.register (/Applications/MAMP/htdocs/sailng/api/services/protocols/local.js:55:6) at Authenticator.passport.callback (/Applications/MAMP/htdocs/sailng/api/services/passport.js:197:28) at AuthController.callback (/Applications/MAMP/htdocs/sailng/api/controllers/AuthController.js:121:14) at routeTargetFnWrapper (/Applications/MAMP/htdocs/sailng/node_modules/sails/lib/router/bind.js:176:5) at callbacks (/Applications/MAMP/htdocs/sailng/node_modules/sails/node_modules/express/lib/router/index.js:164:37) at param (/Applications/MAMP/htdocs/sailng/node_modules/sails/node_modules/express/lib/router/index.js:138:11) at param (/Applications/MAMP/htdocs/sailng/node_modules/sails/node_modules/express/lib/router/index.js:135:11) at pass (/Applications/MAMP/htdocs/sailng/node_modules/sails/node_modules/express/lib/router/index.js:145:5) at nextRoute (/Applications/MAMP/htdocs/sailng/node_modules/sails/node_modules/express/lib/router/index.js :100:https://assets-cdn.github.com/images/icons/emoji/100.png 7) at callbacks (/Applications/MAMP/htdocs/sailng/node_modules/sails/node_modules/express/lib/router/index.js:167:11)

— Reply to this email directly or view it on GitHub https://github.com/johntom/sailng/issues/2 . https://github.com/notifications/beacon/1877376__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxODIwNTI1NywiZGF0YSI6eyJpZCI6MzQ1MTkyNzN9fQ==--7f7ab56acd145a9b92283baf032e0b6efc24cec8.gif


No virus found in this message. Checked by AVG - www.avg.com Version: 2014.0.4570 / Virus Database: 3955/7662 - Release Date: 06/11/14