domfarolino / angular2-login-seed

(deprecated) Seed app w/ Angular2, Node, Express, and OAuth login
https://domfarolino.com/angular2-login-seed
MIT License
181 stars 77 forks source link

Unable to register: "User already exists" #25

Open IvanYurchenko opened 7 years ago

IvanYurchenko commented 7 years ago

I can't sign up. It tells me that such user already exists regardless of what name/username/email I enter. If that's my problem please give an advice on how to fix that.

This is the console output:

Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
main.bundle.js:50563 Bootstrap success
https://angular2-login-seed.herokuapp.com/api/authenticated Failed to load resource: the server responded with a status of 401 (Unauthorized)
https://angular2-login-seed.herokuapp.com/api/users/register Failed to load resource: the server responded with a status of 400 (Bad Request)

Most likely the problem here is the same as in another issue that I've opened. However, I don't know what can cause it.

domfarolino commented 7 years ago

Thanks for the issue. This is actually the reason for the (deprecated) parents on the description. I def. need to make it more obvious though. I've let the database hosting that I use for this expire as I switched providers. I have a DB dump of all the users when the hosting expired, however I have not migrated the backend hosting yet (may not at all).

IvanYurchenko commented 7 years ago

I see, thanks for the explanations. I think I'll try to create the project myself. Do you need to use hosting even for signing in, though? Is there a possibility to use pure Google authentication without storing anything in the database?

domfarolino commented 7 years ago

@IvanYurchenko There is, but not currently integrated in this application. If you need help setting it up or something let me know. Alternatively, if you'd like to become a collaborator on this repository we can talk about that. I'm looking for someone to be a maintainer.