Skip to content

Commit

Permalink
Merge pull request #16 from taskemapp/validation-comm
Browse files Browse the repository at this point in the history
chore(validation): add some comments
  • Loading branch information
ripls56 authored Aug 13, 2024
2 parents 872bbef + 4936445 commit 62c692f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/validation/password.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ func calcSymbolPool(
) int {
switch {
case isLower && isUpper && isDigit && isSpecial:
return 95 // contains (a-z, A-Z, ASCII, space)
return 95 // contains (a-z, A-Z, 0-9, special)
case isLower && isUpper && isDigit:
return 62 // contains (a-z, A-Z, 0-9)
case (isLower || isUpper) && isDigit:
return 36 // contains (a-z or A-Z, 0-9)
case isSpecial:
return 32
return 32 // contains (special)
case isLower || isUpper:
return 26 // contains (a-z or A-Z)
case isDigit:
Expand Down

0 comments on commit 62c692f

Please sign in to comment.