#Why isn't this password checker returning true?

1 messages · Page 1 of 1 (latest)

woeful mica
#

For level 2, the password has to be 8 characters long, contain an uppercase, contain at least one digit, and at least one symbol.

weak heartBOT
#

<@&987246399047479336> please have a look, thanks.

weak heartBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

slow osprey
#

cause your conditions cannot ever be met

#

the last char needs to be not-a-digit + a-digit and uppercase

woeful mica
#

ohhhhhh

slow osprey
#

do u see what u did there ?

woeful mica
#

yea

#

isnt it impossible with a for loop then

slow osprey
#

do u know regex ?

woeful mica
#

no

#

should i just do it in a way that i make 3 different booleans

slow osprey
#

that works aswell

woeful mica
#

and check for number symbol and upper case all seperately

slow osprey
#

u can do that sure, but such things are easier with regex, and more potent

unborn briar
#

Regex can't check if at least one character is a number and at least one is uppercase

#

Three booleans is the way to go here (or as many booleans / predicates as the amount of rules you have)