generator-angular-fullstack icon indicating copy to clipboard operation
generator-angular-fullstack copied to clipboard

STRANGE ERROR : invalid userid or password

Open srilives opened this issue 8 years ago • 3 comments

  • [ ] I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack x.x.x
Node 6.10.0
npm 3.10.10
Operating System Ubuntu 16.10 / etc
etc etc
Item Answer
Transpiler Babel
Markup HTML
CSS CSS
Router ngRoute
Client Tests Jasmine
DB MongoDB
Auth Y
etc etc

srilives avatar May 02 '17 09:05 srilives

When we run the server in dev environment (gulp:serve), we are able to login using the userid & password. But when we run the same in production(gulp:serve:prod), it is giving us an error " invalid user id or password.

for testing purpose, we connected both dev & prod to the same mongo database. This has become an show stopper for production move. please help

srilives avatar May 02 '17 09:05 srilives

May be a silly question; but have you tried registering a new user then logging in with that?

Azayzel avatar May 12 '17 03:05 Azayzel

When you run in production mode, server/config/seed.js does not get run when the server starts, so you're running against a completely blank database. For production, you'll have to add the first user yourself.

Awk34 avatar May 12 '17 19:05 Awk34