diff --git a/src/main/java/cactusServer/entities/Account.java b/src/main/java/cactusServer/entities/Account.java index 4d24b8a..2e9b412 100644 --- a/src/main/java/cactusServer/entities/Account.java +++ b/src/main/java/cactusServer/entities/Account.java @@ -1,12 +1,11 @@ package cactusServer.entities; -import org.apache.commons.lang3.RandomStringUtils; - public class Account { private String id,name, pass, token; private boolean login = false; - public Account(String userName, String userPass) { + public Account(String userID,String userName, String userPass) { + setId(userID); setName(userName); setPass(userPass); } @@ -48,7 +47,7 @@ } public String formToken() { - token = RandomStringUtils.random(64, "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"); + token = RandomStringGenerator.createRandomString(64, RandomStringGenerator.ALPHA_NUMERIC); return token; }