类 LoginController

java.lang.Object
com.publiccms.controller.web.LoginController

@Controller public class LoginController extends Object
LoginController 登录逻辑
  • 字段详细资料

  • 构造器详细资料

    • LoginController

      public LoginController()
  • 方法详细资料

    • login

      @PostMapping("doLogin") public String login(@RequestAttribute SysSite site, String username, String password, String returnUrl, String encoding, String captcha, Long clientId, String uuid, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.web.servlet.mvc.support.RedirectAttributes model)
      参数:
      site - 站点
      username - 用户名
      password - 密码
      returnUrl - 返回地址
      encoding - 密码编码
      captcha - 验证码
      clientId - 客户端id
      uuid - 客户端uuid
      request - 请求
      response - 返回
      model - 模型
      返回:
      view name 视图名
    • loginStatus

      @RequestMapping("loginStatus") @ResponseBody public Map<String,Object> loginStatus(jakarta.servlet.http.HttpSession session)
      参数:
      session -
      返回:
      result
    • register

      @PostMapping("doRegister") public String register(@RequestAttribute SysSite site, SysUser entity, String repassword, String returnUrl, String encode, String captcha, Long clientId, String uuid, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.web.servlet.mvc.support.RedirectAttributes model)
      参数:
      site -
      entity -
      repassword -
      returnUrl -
      encode -
      captcha - 验证码
      clientId -
      uuid -
      request -
      response -
      model -
      返回:
      view name
    • getCaptchaImage

      @RequestMapping("getCaptchaImage") public void getCaptchaImage(jakarta.servlet.http.HttpSession session, jakarta.servlet.http.HttpServletResponse response)
    • logout

      @PostMapping("doLogout") public String logout(@RequestAttribute SysSite site, Long userId, String returnUrl, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      参数:
      site -
      userId -
      returnUrl -
      request -
      response -
      返回:
      view name
    • addLoginStatus

      public static void addLoginStatus(SysUser user, String authToken, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, int expiryMinutes)
    • verifyNotEnablie

      public static boolean verifyNotEnablie(SysUser user, org.springframework.web.servlet.mvc.support.RedirectAttributes model)
      参数:
      user -
      model -
      返回:
      用户是否禁用