maintain (eslint): linting on frontend

This commit is contained in:
Mickael Kerjean
2021-12-21 01:32:37 +11:00
parent 48a6763380
commit 5156432b52
62 changed files with 1920 additions and 1655 deletions

View File

@ -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);
})
});
});
}