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

sign up without password was successful

Open chandruk4321 opened this issue 10 years ago • 2 comments

I tried to signup just with a username. Instead of getting failure, the signup was successful, as a result the password field and salt field in the database are missing. Subsequently, logging in with the signed up user never returns.

chandruk4321 avatar Oct 03 '16 12:10 chandruk4321

Which settings did you scaffold with? Which generator version?

Awk34 avatar Oct 03 '16 16:10 Awk34

this should not happen. (and does not happen in the default installation) make sure in user model that the password looks something like this: password: {type: String, minlength: [6, 'Password must be 6 characters or more.'], maxlength: 100},

give more details if you still need help.

AmirGilboa avatar Oct 11 '16 01:10 AmirGilboa