Register logic actualizated

This commit is contained in:
2021-10-25 20:36:03 -03:00
parent 89074d41e5
commit 305a075e23
5 changed files with 51 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
const MakeRandomString = (length) => {
let result = '';
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
const charactersLength = characters.length;
for ( var i = 0; i < length; i++ ) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
}
export default MakeRandomString