From 1272510e6cd89a02ba7e94e22d795d91a22d4bac Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 31 May 2018 20:21:08 +0300 Subject: ugnich random -> commons-lang3 RandomStringUtils --- .../security/deprecated/CookieSimpleHashRememberMeServices.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-common/src/main/java/com/juick/service/security/deprecated') diff --git a/juick-common/src/main/java/com/juick/service/security/deprecated/CookieSimpleHashRememberMeServices.java b/juick-common/src/main/java/com/juick/service/security/deprecated/CookieSimpleHashRememberMeServices.java index a8b956c1..b658e16f 100644 --- a/juick-common/src/main/java/com/juick/service/security/deprecated/CookieSimpleHashRememberMeServices.java +++ b/juick-common/src/main/java/com/juick/service/security/deprecated/CookieSimpleHashRememberMeServices.java @@ -18,10 +18,10 @@ package com.juick.service.security.deprecated; import com.juick.User; -import com.juick.server.util.HashUtils; import com.juick.service.security.entities.JuickUser; import com.juick.service.UserService; import com.juick.service.security.NullUserDetailsService; +import org.apache.commons.lang3.RandomStringUtils; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -84,7 +84,7 @@ public class CookieSimpleHashRememberMeServices extends AbstractRememberMeServic Assert.isTrue(uid > 0); - String hash = HashUtils.generateHash(16); + String hash = RandomStringUtils.randomAlphanumeric(16).toUpperCase(); userService.setLoginForUser(uid, hash); -- cgit v1.2.3