Change to password generation characters and length

This commit is contained in:
Tatu Laras
2025-06-25 11:14:34 +03:00
parent ce7889120a
commit 346a81280b
@@ -45,8 +45,8 @@ const UserPasswordInput = ({ onChange, value }: { onChange: (value: string) => v
const [hidePassword, setHidePassword] = useState(false)
const randomPassword = () => {
const passwordLength = 12
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
const passwordLength = 14
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789^?$%&~!'
let result: string = ''
for (let i = 0; i < passwordLength; i++) {