felicity-buzz-2k16 / quiz-portal-backend

The generic quiz portal's backend
ISC License
0 stars 7 forks source link

password hashing #14

Closed anubhabsen closed 8 years ago

anubhabsen commented 8 years ago

This is incorrect and doesn't work

meghprkh commented 8 years ago

When you install bcrypt, add it to package.json, so that when others do npm install they too will get brcrypt. Please run npm install brcypt --save to do this

anubhabsen commented 8 years ago

The auth isn't functioning either I believe.

meghprkh commented 8 years ago

You also need to edit create sample models and store the hash of the password there. (add saltRounds to config so that reuse and after sync works, try async)


      { email: 'megh@gmail.com', password: bcrypt.hashSync('password', 10), name: 'Megh'},
      { email: 'megh2@gmail.com', password: bcrypt.hashSync('password', 10), name: 'Megh2'}
anubhabsen commented 8 years ago

Some building npm failed it seems, also auth still doesn't work

meghprkh commented 8 years ago

login worked for me. try deleting the db

meghprkh commented 8 years ago

dunno why travis is failing though

anubhabsen commented 8 years ago

Clearing database worked. Now async?

meghprkh commented 8 years ago

Closed in favor of #16