@Controller
public class LoginAdminController
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private CacheComponent |
cacheComponent |
private ConfigDataComponent |
configDataComponent |
private LockComponent |
lockComponent |
private LogLoginService |
logLoginService |
protected LogOperateService |
logOperateService |
protected SafeConfigComponent |
safeConfigComponent |
private SysUserService |
service |
protected SiteComponent |
siteComponent |
private SysUserTokenService |
sysUserTokenService |
构造器和说明 |
---|
LoginAdminController() |
限定符和类型 | 方法和说明 |
---|---|
static void |
addLoginStatus(SysUser user,
java.lang.String authToken,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
int expiryMinutes) |
java.lang.String |
changeMyselfPassword(SysSite site,
SysUser admin,
java.lang.String oldpassword,
java.lang.String password,
java.lang.String repassword,
java.lang.String encoding,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model) |
java.lang.String |
clearCache() |
org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> |
getCaptchaImage(javax.servlet.http.HttpSession session) |
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,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model) |
java.lang.String |
loginDialog(SysSite site,
java.lang.String username,
java.lang.String password,
java.lang.String encoding,
java.lang.String captcha,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.ModelMap model) |
java.lang.String |
logout(java.lang.Long userId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected boolean |
verifyNotAdmin(SysUser user,
org.springframework.ui.ModelMap model) |
protected boolean |
verifyNotEnablie(SysUser user,
org.springframework.ui.ModelMap model) |
protected LogOperateService logOperateService
private SysUserService service
private SysUserTokenService sysUserTokenService
private LogLoginService logLoginService
private CacheComponent cacheComponent
private ConfigDataComponent configDataComponent
private LockComponent lockComponent
protected SiteComponent siteComponent
protected SafeConfigComponent safeConfigComponent
@PostMapping(value="login") 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, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
site
- username
- password
- returnUrl
- encoding
- captcha
- 验证码request
- response
- model
- public static void addLoginStatus(SysUser user, java.lang.String authToken, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, int expiryMinutes)
@PostMapping(value="loginDialog") public java.lang.String loginDialog(@RequestAttribute SysSite site, java.lang.String username, java.lang.String password, java.lang.String encoding, java.lang.String captcha, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
site
- username
- password
- encoding
- captcha
- request
- response
- model
- @PostMapping(value="changePassword") public java.lang.String changeMyselfPassword(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, java.lang.String oldpassword, java.lang.String password, java.lang.String repassword, java.lang.String encoding, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
site
- admin
- oldpassword
- password
- repassword
- encoding
- request
- response
- model
- @GetMapping(value="logout") public java.lang.String logout(java.lang.Long userId, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
userId
- request
- response
- @RequestMapping(value="getCaptchaImage") public org.springframework.http.ResponseEntity<org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody> getCaptchaImage(javax.servlet.http.HttpSession session)
session
- @RequestMapping(value="clearCache") public java.lang.String clearCache()
protected boolean verifyNotAdmin(SysUser user, org.springframework.ui.ModelMap model)
protected boolean verifyNotEnablie(SysUser user, org.springframework.ui.ModelMap model)