diff --git a/src/views/tool/bcrypt.vue b/src/views/tool/bcrypt.vue index 2caabed4c09b53bc3543b2cfb63a9b5258ed1000..1dc7bd170f6cea963717bfc19c82f215d89bdd22 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) => {