Can't register a new user
AndreasHeintze opened this issue · comments
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'"
}
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.
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,
Sorry for prevous post as it was wrong even though it worked sometimes, I finally found the issue
balderdashy/sails#1607
Change .done to .exec (.done is a deprecated / possibly removed alias for .exec)
I can confirm that changing .done to .exec throughout the project fixes this issue.
I fixed my repo just need to add role field to registration.
https://github.com/johntom/sailngMongo
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.