提交 467c7f9a 编写于 作者: 智布道's avatar 智布道 👁

🎨 Improving format of the code.

上级 fe16db5b
......@@ -31,7 +31,7 @@ public enum JapErrorCode {
ERROR(500, "An error occurred in the system, please refer to the error message."),
NOT_EXIST_USER(1000, "The user does not exist."),
INVALID_PASSWORD(1001, "Passwords don't match."),
INVALID_MEMBERME_COOKIE(1002, "Illegal memberme cookie."),
INVALID_MEMBERME_COOKIE(1002, "Illegal remember me cookie."),
UNABLE_SAVE_USERINFO(1003, "Unable to save user information."),
MISS_AUTH_CONFIG(1004, "AuthConfig in SocialStrategy is required."),
MISS_AUTHENTICATE_CONFIG(1005, "AuthenticateConfig is required."),
......
......@@ -74,7 +74,7 @@ public class SessionJapUserStore implements JapUserStore {
if (!japConfig.isSso()) {
JapUser japUser = this.get(request, response);
if (null != japUser) {
JapTokenHelper.removeUserToken(japUser.getUserId());
JapTokenHelper.removeUserToken(japUser.getUserId());
}
}
......
......@@ -18,7 +18,6 @@ package com.fujieid.jap.core.store;
import cn.hutool.core.util.StrUtil;
import com.fujieid.jap.core.JapUser;
import com.fujieid.jap.core.JapUserService;
import com.fujieid.jap.core.context.JapAuthentication;
import com.fujieid.jap.core.util.JapTokenHelper;
import com.fujieid.jap.sso.JapSsoHelper;
import com.fujieid.jap.sso.config.JapSsoConfig;
......@@ -74,7 +73,7 @@ public class SsoJapUserStore extends SessionJapUserStore {
@Override
public void remove(HttpServletRequest request, HttpServletResponse response) {
JapUser japUser = this.get(request, response);
if(null != japUser) {
if (null != japUser) {
JapTokenHelper.removeUserToken(japUser.getUserId());
}
super.remove(request, response);
......
......@@ -33,7 +33,7 @@ import java.util.Map;
public class JapTokenHelper {
public static void saveUserToken(String userId, String token) {
public static void saveUserToken(String userId, String token) {
JapAuthentication.getContext().getCache().set(JapConst.USER_TOKEN_KEY.concat(userId), token);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册