Skip to content

Conversation

@rock43053
Copy link

No description provided.

let upperCase = password.toUpperCase()
let lowerCase = password.toLowerCase()

if (upperCase === password || lowerCase === password) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks clever. Are you able to confirm if this is checking correctly.
It reads as though it is checking for an all uppercase or or lowercase password having been passed in.
We need it to validate that there is one upper and one lower letter only.
Maybe it is solving this but from looking closely that is the curiosity I have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants