Closed ciphersaw closed 4 years ago
The example CheckPassword("Aa12345", N|L_OR_U, 6) returned false before, but it returns true with the latest flag comparison logic.
CheckPassword("Aa12345", N|L_OR_U, 6)
false
true
The details of update is shown as following:
L_OR_U
L_OR_U|L
L_OR_U|U
L_OR_U|L|U
L|U
The example
CheckPassword("Aa12345", N|L_OR_U, 6)
returnedfalse
before, but it returnstrue
with the latest flag comparison logic.The details of update is shown as following:
L_OR_U
: It should include either the lowercase or the uppercase letter.L_OR_U|L
: It must include the lowercase letter, while the uppercase letter is optional.L_OR_U|U
: It must include the uppercase letter, while the lowercase letter is optional.L_OR_U|L|U
: It must include both the lowercase and the uppercase letter, which is equal toL|U
.