@RestController @Feature(cls=USER) public class LoginControl extends BaseServerController
Modifier and Type | Field and Description |
---|---|
static cn.hutool.cache.impl.LFUCache<String,Integer> |
LFU_CACHE
ip 黑名单
|
NODE_ID, nodeService
Constructor and Description |
---|
LoginControl(UserService userService,
UserBindWorkspaceService userBindWorkspaceService) |
Modifier and Type | Method and Description |
---|---|
String |
demoInfo()
获取 demo 账号的信息
|
String |
logout()
退出登录
|
String |
mfaVerify(String token,
String code) |
void |
randCode()
验证码
|
String |
renewalToken()
刷新token
|
String |
userLogin(String userName,
String userPwd,
String code)
登录接口
|
checkCron, getNode, getUser, getUserByThreadLocal, getUserModel, removeAll, removeEmpty, resetInfo, 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 LoginControl(UserService userService, UserBindWorkspaceService userBindWorkspaceService)
@RequestMapping(value="randCode.png", method=GET, produces="image/png") @NotLogin public void randCode() throws IOException
IOException
- IO@PostMapping(value="userLogin", produces="application/json") @NotLogin @Feature(method=EXECUTE, resultCode={200,201}, logResponse=false) 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)
userName
- 登录名userPwd
- 登录密码code
- 验证码@GetMapping(value="mfa_verify", produces="application/json") @NotLogin public String mfaVerify(String token, String code)
@RequestMapping(value="logout2", method=GET, produces="application/json") @NotLogin public String logout()
@RequestMapping(value="renewal", method=POST, produces="application/json") @NotLogin public String renewalToken()
Copyright © 2017–2022. All rights reserved.