mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Change to password generation characters and length
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user