提交 7f68f581 编写于 作者: B baiy 提交者: ninecents

fix

上级 7bd409b0
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
setTimeout(() => { setTimeout(() => {
try { try {
const rounds = parseInt(this.current.generate.rounds) const rounds = parseInt(this.current.generate.rounds)
if (rounds < 1 || rounds > 30) { if (rounds < 4 || rounds > 30) {
throw new Error(this.$t('bcrypt_rounds_range', [4, 30]).toString()) throw new Error(this.$t('bcrypt_rounds_range', [4, 30]).toString())
} }
bcrypt.hash(this.current.generate.password, rounds, (err, hash) => { bcrypt.hash(this.current.generate.password, rounds, (err, hash) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册