update dependencies, migrate RandomStringUtils
This commit is contained in:
@@ -165,9 +165,9 @@ public class InviteManager implements UserDataProvider {
|
||||
*/
|
||||
public Invite save(Invite invite) {
|
||||
if (!StringUtils.hasText(invite.getCode())) {
|
||||
invite.setCode(RandomStringUtils.random(codeLength, true, true).toUpperCase());
|
||||
invite.setCode(RandomStringUtils.secure().next(codeLength, true, true).toUpperCase());
|
||||
while (inviteRepository.exists(qInvite.code.eq(invite.getCode()))) {
|
||||
invite.setCode(RandomStringUtils.random(codeLength, true, true).toUpperCase());
|
||||
invite.setCode(RandomStringUtils.secure().next(codeLength, true, true).toUpperCase());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user