update dependencies, migrate RandomStringUtils
This commit is contained in:
@@ -53,7 +53,7 @@ public class DyndnsTokenManager implements UserDataProvider {
|
||||
*/
|
||||
public DyndnsToken create(Long owner, boolean quota) {
|
||||
DyndnsToken dyndnsToken = new DyndnsToken();
|
||||
String token = RandomStringUtils.random(TOKEN_LENGTH, true, true);
|
||||
String token = RandomStringUtils.secure().next(TOKEN_LENGTH, true, true);
|
||||
dyndnsToken.setOwner(owner);
|
||||
dyndnsToken.setToken(token);
|
||||
dyndnsToken.setTokenHash(passwordEncoder.encode(dyndnsToken.getToken()));
|
||||
|
||||
Reference in New Issue
Block a user