@Controller
public class LoginController
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private SysAppClientService |
appClientService |
protected ConfigDataComponent |
configDataComponent |
private LockComponent |
lockComponent |
protected static org.apache.commons.logging.Log |
log |
private LogLoginService |
logLoginService |
protected SafeConfigComponent |
safeConfigComponent |
private SysUserService |
service |
protected SiteComponent |
siteComponent |
private SysUserTokenService |
sysUserTokenService |
构造器和说明 |
---|
LoginController() |
限定符和类型 | 方法和说明 |
---|---|
static void |
addLoginStatus(SysUser user,
java.lang.String authToken,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
int expiryMinutes) |
void |
getCaptchaImage(javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletResponse response) |
java.lang.String |
login(SysSite site,
java.lang.String username,
java.lang.String password,
java.lang.String returnUrl,
java.lang.String encoding,
java.lang.String captcha,
java.lang.Long clientId,
java.lang.String uuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.web.servlet.mvc.support.RedirectAttributes model) |
java.util.Map<java.lang.String,java.lang.Object> |
loginStatus(javax.servlet.http.HttpSession session) |
java.lang.String |
logout(SysSite site,
java.lang.Long userId,
java.lang.String returnUrl,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
java.lang.String |
register(SysSite site,
SysUser entity,
java.lang.String repassword,
java.lang.String returnUrl,
java.lang.String encode,
java.lang.String captcha,
java.lang.Long clientId,
java.lang.String uuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.web.servlet.mvc.support.RedirectAttributes model) |
boolean |
verifyNotEnablie(SysUser user,
org.springframework.web.servlet.mvc.support.RedirectAttributes model) |
protected static final org.apache.commons.logging.Log log
private SysUserService service
private SysUserTokenService sysUserTokenService
private SysAppClientService appClientService
private LogLoginService logLoginService
private LockComponent lockComponent
protected SiteComponent siteComponent
protected ConfigDataComponent configDataComponent
protected SafeConfigComponent safeConfigComponent
@PostMapping(value="doLogin") public java.lang.String login(@RequestAttribute SysSite site, java.lang.String username, java.lang.String password, java.lang.String returnUrl, java.lang.String encoding, java.lang.String captcha, java.lang.Long clientId, java.lang.String uuid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.mvc.support.RedirectAttributes model)
site
- 站点username
- 用户名password
- 密码returnUrl
- 返回地址encoding
- 密码编码captcha
- 验证码clientId
- 客户端iduuid
- 客户端uuidrequest
- 请求response
- 返回model
- 模型@RequestMapping(value="loginStatus") @ResponseBody public java.util.Map<java.lang.String,java.lang.Object> loginStatus(javax.servlet.http.HttpSession session)
session
- @PostMapping(value="doRegister") public java.lang.String register(@RequestAttribute SysSite site, SysUser entity, java.lang.String repassword, java.lang.String returnUrl, java.lang.String encode, java.lang.String captcha, java.lang.Long clientId, java.lang.String uuid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.mvc.support.RedirectAttributes model)
site
- entity
- repassword
- returnUrl
- encode
- captcha
- 验证码clientId
- uuid
- request
- response
- model
- @RequestMapping(value="getCaptchaImage") public void getCaptchaImage(javax.servlet.http.HttpSession session, javax.servlet.http.HttpServletResponse response)
@PostMapping(value="doLogout") public java.lang.String logout(@RequestAttribute SysSite site, java.lang.Long userId, java.lang.String returnUrl, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
site
- userId
- returnUrl
- request
- response
- public static void addLoginStatus(SysUser user, java.lang.String authToken, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, int expiryMinutes)
public boolean verifyNotEnablie(SysUser user, org.springframework.web.servlet.mvc.support.RedirectAttributes model)
user
- model
-