STRANGE ERROR : invalid userid or password
- [ ] 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 |
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
May be a silly question; but have you tried registering a new user then logging in with that?
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.