@Controller public class LoginControl extends BaseServerController
Modifier and Type | Field and Description |
---|---|
static int |
INPUT_CODE |
static cn.hutool.cache.impl.LFUCache<String,Integer> |
LFU_CACHE
ip 黑名单
|
nodeService
Constructor and Description |
---|
LoginControl() |
Modifier and Type | Method and Description |
---|---|
String |
login()
登录页面
|
String |
logout()
退出登录
|
void |
randCode()
验证码
|
String |
userLogin(String userName,
String userPwd,
String code)
登录接口
|
doPage, getNode, getUser, getUserModel, remove, resetInfo, tryGetNode
checkPathSafe, pathSafe
clearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFile
getApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes
public static final int INPUT_CODE
@RequestMapping(value="login.html", method=GET, produces="text/html") @NotLogin public String login()
@RequestMapping(value="randCode.png", method=GET, produces="image/png") @ResponseBody @NotLogin public void randCode() throws IOException
IOException
- IO@RequestMapping(value="userLogin", method=POST, produces="application/json;charset=UTF-8") @ResponseBody @NotLogin @OptLog(value=Login) public String userLogin(@ValidatorConfig(value=@ValidatorItem(value=NOT_EMPTY,msg="\u8bf7\u8f93\u5165\u767b\u5f55\u4fe1\u606f")) String userName, @ValidatorConfig(value=@ValidatorItem(value=NOT_EMPTY,msg="\u8bf7\u8f93\u5165\u767b\u5f55\u4fe1\u606f")) String userPwd, String code) throws IOException
userName
- 登录名userPwd
- 登录密码IOException
@RequestMapping(value="logout", method=GET, produces="text/html") public String logout()
Copyright © 2017–2019. All rights reserved.