Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't register a new user #5

Closed
AndreasHeintze opened this issue Apr 21, 2014 · 6 comments
Closed

Can't register a new user #5

AndreasHeintze opened this issue Apr 21, 2014 · 6 comments

Comments

@AndreasHeintze
Copy link

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
Copy link
Owner

ryancp commented Apr 21, 2014

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
Copy link

johntom commented Apr 21, 2014

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
Copy link

johntom commented Apr 22, 2014

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)

@thewaterbear
Copy link

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

@johntom
Copy link

johntom commented Apr 28, 2014

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

@ryancp
Copy link
Owner

ryancp commented May 15, 2014

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.

@ryancp ryancp closed this as completed May 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants