mirror of https://github.com/Budibase/budibase.git
4 changed files with 2 additions and 23 deletions
@ -1,14 +0,0 @@ |
|||||
import bcrypt from "bcryptjs"; |
|
||||
|
|
||||
function hash(password) { |
|
||||
return bcrypt.hashSync(password, 10); |
|
||||
} |
|
||||
|
|
||||
function verify(password, hash) { |
|
||||
return bcrypt.compareSync(password, hash); |
|
||||
} |
|
||||
|
|
||||
|
|
||||
export default { |
|
||||
hash, verify |
|
||||
}; |
|
||||
Loading…
Reference in new issue