diff options
Diffstat (limited to 'juick-common/src/main/java/com/juick/service/security/deprecated')
-rw-r--r-- | juick-common/src/main/java/com/juick/service/security/deprecated/CookieSimpleHashRememberMeServices.java | 4 |
1 files changed, 2 insertions, 2 deletions
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); |