ryancp / sailng

Sails.js + Angular = Awesome
MIT License
163 stars 38 forks source link

Can't register a new user #5

Closed AndreasHeintze closed 10 years ago

AndreasHeintze commented 10 years ago

I just installed SailNg and tried the example, but I didn't get far. When I try to register a new user I get the following message: { "status": 500, "message": "TypeError: Object [object Object] has no method 'done'" }

ryancp commented 10 years ago

That is a result of an error upon registration. Most likely your password wasn't 8 characters. Try that and see if you can set up a new user. I will add an issue to add meaningful error messages on the registration page.

johntom commented 10 years ago

I've answered this by mistake in #6 as my experience indicates that is has nothing to do with the 8 characters min on password,

johntom commented 10 years ago

Sorry for prevous post as it was wrong even though it worked sometimes, I finally found the issue https://github.com/balderdashy/sails/issues/1607 Change .done to .exec (.done is a deprecated / possibly removed alias for .exec)

thewaterbear commented 10 years ago

I can confirm that changing .done to .exec throughout the project fixes this issue.

johntom commented 10 years ago

I fixed my repo just need to add role field to registration. https://github.com/johntom/sailngMongo

ryancp commented 10 years ago

This has been fixed and I was unable to reproduce after using the latest code change. Feel free to re-open if the latest commit doesn't work for you.