mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-02 11:57:04 +08:00
maintain (eslint): linting on frontend
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
import bcrypt from 'bcryptjs';
|
||||
import bcrypt from "bcryptjs";
|
||||
|
||||
export function bcrypt_password(password){
|
||||
export function bcrypt_password(password) {
|
||||
return new Promise((done, error) => {
|
||||
bcrypt.hash(password, 10, (err, hash) => {
|
||||
if(err) return error(err)
|
||||
if (err) return error(err);
|
||||
done(hash);
|
||||
})
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user