Update token-generator.service.ts

This commit is contained in:
elibrody 2024-05-13 16:44:22 -05:00 committed by GitHub
parent cc136cf012
commit 2131a62456
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,7 +20,7 @@ export function createToken({
withLowercase ? 'abcdefghijklmopqrstuvwxyz' : '', withLowercase ? 'abcdefghijklmopqrstuvwxyz' : '',
withNumbers ? '0123456789' : '', withNumbers ? '0123456789' : '',
withSymbols ? '.,;:!?./-"\'#{([-|\\@)]=}*+' : '', withSymbols ? '.,;:!?./-"\'#{([-|\\@)]=}*+' : '',
].join(''); ; ].join('');
return shuffleString(allAlphabet.repeat(length)).substring(0, length); return shuffleString(allAlphabet.repeat(length)).substring(0, length);
} }