Package com.jeecms.common.security

Examples of com.jeecms.common.security.DisabledException


        CmsUser user = cmsUserMng.findById(auth.getUid());
        if (user.getDisabled()) {
          // 如果已经禁用,则推出登录。
          authMng.deleteById(auth.getId());
          session.logout(request, response);
          throw new DisabledException("user disabled");
        }
        removeCookieErrorRemaining(request, response);
        String view = getView(processUrl, returnUrl, auth.getId());
        if (view != null) {
          return view;
View Full Code Here


    if (!user.isAccountNonLocked()) {
      throw new LockedException();
    }

    if (!user.isEnabled()) {
      throw new DisabledException("User is disabled", user);
    }

    if (!user.isAccountNonExpired()) {
      throw new AccountExpiredException("User account has expired", user);
    }
View Full Code Here

        CmsUser user = cmsUserMng.findById(auth.getUid());
        if (user.getDisabled()) {
          // 如果已经禁用,则退出登录。
          authMng.deleteById(auth.getId());
          session.logout(request, response);
          throw new DisabledException("user disabled");
        }
        removeCookieErrorRemaining(request, response);
        returnUrl="/jeeadmin/jeecms/index.do";
        System.out.println("我在com.jeecms.cms.action.admin.CmsLoginAct.submit加 returnUrl= /jeeadmin/jeecms/index.do");
        String view = getView(processUrl, returnUrl, auth.getId());
View Full Code Here

TOP

Related Classes of com.jeecms.common.security.DisabledException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.