From 7f68f5817dff6ffd958b05ba2f8f8ff554770dec Mon Sep 17 00:00:00 2001 From: baiy Date: Wed, 13 Apr 2022 15:51:21 +0800 Subject: [PATCH] fix --- src/views/tool/bcrypt.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/tool/bcrypt.vue b/src/views/tool/bcrypt.vue index 2caabed..1dc7bd1 100644 --- a/src/views/tool/bcrypt.vue +++ b/src/views/tool/bcrypt.vue @@ -76,7 +76,7 @@ export default { setTimeout(() => { try { 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()) } bcrypt.hash(this.current.generate.password, rounds, (err, hash) => { -- GitLab