For this challenge, I was tasked with refactoring the codebase of a password generator webpage.
- WHEN I click the button to generate a password I am presented with a series of prompts for password criteria
- WHEN prompted for password criteria THEN I select which criteria to include in the password
- WHEN prompted for the length of the password THEN I choose a length of at least 8 characters and no more than 128 characters
- WHEN asked for character types to include in the password THEN I confirm whether or not to include lowercase, uppercase, numeric, and/or special characters
- WHEN I answer each prompt THEN my input should be validated and at least one character type should be selected
- WHEN all prompts are answered THEN a password is generated that matches the selected criteria
- WHEN the password is generated THEN the password is either displayed in an alert or written to the page
- Refactored HTML to add botton "confirm selection"
- Refactored HTML to add input selected checkbox
- Labeled each box according to crieria given by the client
- Optimized the criteria selection to be easily selected
- Optimized the "Generate Password" button by adding "hidden" feature after click.
- Adding a second "Confirm Selection" botton to confirm the selection choosen by the client
- Added a "Hidden" feature to "Confirm Selection" after being clicked
- Added some CSS styling to the checkboxes
- Refactored JS to meet the client's demands