Exemple #1
0
 public static void removeLoginCaptcha() {
   SessionHolder.removeAttribute(CAPTCHA_LOGIN_KEY);
 }
Exemple #2
0
 public static void setLoginCaptcha(String loginCaptcha) {
   SessionHolder.setAttribute(CAPTCHA_LOGIN_KEY, loginCaptcha);
 }
Exemple #3
0
 public static String getLoginCatpcha() {
   Object obj = SessionHolder.getAttributeObj(CAPTCHA_LOGIN_KEY);
   return obj == null ? StringUtil.EMPTY : String.valueOf(obj);
 }
Exemple #4
0
 public static void setUser(User user) {
   SessionHolder.setAttribute(USER_KEY, user);
 }