aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java/com/juick/service/security/deprecated/CookieSimpleHashRememberMeServices.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-05-31 20:21:08 +0300
committerGravatar Vitaly Takmazov2018-05-31 20:21:08 +0300
commit1272510e6cd89a02ba7e94e22d795d91a22d4bac (patch)
treedc6f36cb11c1434214cd7957c267c404c9e12896 /juick-common/src/main/java/com/juick/service/security/deprecated/CookieSimpleHashRememberMeServices.java
parent485600a958c13707e9a1d4940e254f449ecab8ca (diff)
ugnich random -> commons-lang3 RandomStringUtils
Diffstat (limited to 'juick-common/src/main/java/com/juick/service/security/deprecated/CookieSimpleHashRememberMeServices.java')
-rw-r--r--juick-common/src/main/java/com/juick/service/security/deprecated/CookieSimpleHashRememberMeServices.java4
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);