From 800516c025b91b1a0d89511b5187689e4b0072ce Mon Sep 17 00:00:00 2001 From: Douglas Barone Date: Mon, 29 Jan 2024 13:26:28 -0400 Subject: [PATCH] Commented out special character generation in passwordGenerator.js --- web/src/utils/passwordGenerator.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/src/utils/passwordGenerator.js b/web/src/utils/passwordGenerator.js index 9e0cffc..d804ea8 100644 --- a/web/src/utils/passwordGenerator.js +++ b/web/src/utils/passwordGenerator.js @@ -5,7 +5,7 @@ export function passwordGenerator(length = 8) { const lowerCaseLetters = 'abcdefghijklmnopqrstuvwxyz' const upperCaseLetters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' const numbers = '0123456789' - const specialCharacters = '!@#$%&*()[]{}/' + // const specialCharacters = '!@#$%&*()[]{}/' // Initialize character set let characterSet = '' @@ -33,11 +33,11 @@ export function passwordGenerator(length = 8) { password += numbers.charAt(Math.floor(Math.random() * numbers.length)) // Add a special character to the character set - characterSet += specialCharacters + // characterSet += specialCharacters // Pick a random special character and add it to the password - password += specialCharacters.charAt( - Math.floor(Math.random() * specialCharacters.length) - ) + // password += specialCharacters.charAt( + // Math.floor(Math.random() * specialCharacters.length) + // ) // Add random characters to the password until it reaches the desired length for (let i = 4; i < length; i++) {