Skip to content

Commit

Permalink
refactor(validation): change returned expr
Browse files Browse the repository at this point in the history
  • Loading branch information
ripls56 committed Aug 13, 2024
1 parent 24224d5 commit 5d450d7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/pkg/validation/password.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ func IsPwdComplex(password string) bool {
pwdComplexity := math.Log2(float64(symbolPool)) * float64(len(password))

const minComplexity = 40.0
if pwdComplexity < minComplexity {
return false
}

return true
return pwdComplexity > minComplexity
}

0 comments on commit 5d450d7

Please sign in to comment.