mirror of
https://github.com/janishutz/libreevent.git
synced 2026-09-22 13:15:25 +02:00
add password hashing function + easier prod
This commit is contained in:
1 parent
8b6c190e15
commit
e5d3e08a75
4 files changed
+20
-7
No files matched your search
@@ -24,4 +24,10 @@ module.exports.checkpassword = function checkpassword ( email, password ) {
|
||||
} );
|
||||
} );
|
||||
} );
|
||||
};
|
||||
|
||||
module.exports.hashPassword = ( password ) => {
|
||||
return new Promise( resolve => {
|
||||
resolve( bcrypt.hashSync( password, 10 ) );
|
||||
} );
|
||||
};
|
||||
Reference in new issue
Block a user