fix random password.
This commit is contained in:
1 parent
ec3da43bda
commit
3ac19cdb4b
1 file changed
+1
-1
@@ -44,7 +44,7 @@ function generateUsers() {
|
||||
const username = myClass + u
|
||||
let password = ""
|
||||
for (let j = 0; j < 6; j++) {
|
||||
password += parseInt(Math.random() * 10 + "")
|
||||
password += "123456789".charAt(Math.floor(Math.random() * 9))
|
||||
}
|
||||
const realName = u
|
||||
const email = `${myClass}.${i + 1}@example.com`
|
||||
|
||||
Reference in new issue
Block a user