These are chat archives for Automattic/mongoose

24th
Jul 2016
brandonjfajardo
@brandonjfajardo
Jul 24 2016 18:41
why cant i provide a default photo in the mongoose schema? I have {type: String, default: 'picturegoeshere'}
Andre de Waard
@andredewaard
Jul 24 2016 19:18
Hey guys, Maybe a bit of topic here. But what does 'salt' mean in a user Object? I see it everywhere in models by other people projects.
I'm new to mongodb/mongoose and trying to create an API just to learn how to work with it.
brandonjfajardo
@brandonjfajardo
Jul 24 2016 22:13
from my understanding passwords get hashed then you combine the hashed passwords with 'salt' which in return will give you a super secure password that you can save to the DB
brandonjfajardo
@brandonjfajardo
Jul 24 2016 22:30
all of this is done to prevent hackers from easily stealing passwords if they do end up getting access to a DB