删除验证码校验;

删除前端密码
master
吴顺杰 3 weeks ago
parent 8986c7a4ab
commit f6f5de6054

@ -95,7 +95,7 @@ token:
# 令牌密钥
secret: abcdefghijklmnopqrstuvwxyz
# 令牌有效期默认30分钟
expireTime: 30
expireTime: 1440
# MyBatis Plus配置
mybatis-plus:

@ -65,11 +65,11 @@ public class SysLoginService
public String login(String username, String password, String code, String uuid)
{
// 验证码校验
validateCaptcha(username, code, uuid);
// validateCaptcha(username, code, uuid);
// 登录前置校验
loginPreCheck(username, password);
// 用户验证
Authentication authentication = null;
Authentication authentication;
try
{
UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(username, password);
@ -96,6 +96,7 @@ public class SysLoginService
}
AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_SUCCESS, MessageUtils.message("user.login.success")));
LoginUser loginUser = (LoginUser) authentication.getPrincipal();
loginUser.getUser().setPassword(null);
recordLoginInfo(loginUser.getUserId());
// 生成token
return tokenService.createToken(loginUser);

Loading…
Cancel
Save