Commit edf3dd65 authored by macro's avatar macro
Browse files

Update UmsAdminServiceImpl.java

parent ea0b1a0f
...@@ -109,7 +109,7 @@ public class UmsAdminServiceImpl implements UmsAdminService { ...@@ -109,7 +109,7 @@ public class UmsAdminServiceImpl implements UmsAdminService {
UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(userDetails, null, userDetails.getAuthorities()); UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(userDetails, null, userDetails.getAuthorities());
SecurityContextHolder.getContext().setAuthentication(authentication); SecurityContextHolder.getContext().setAuthentication(authentication);
token = jwtTokenUtil.generateToken(userDetails); token = jwtTokenUtil.generateToken(userDetails);
updateLoginTimeByUsername(username); // updateLoginTimeByUsername(username);
insertLoginLog(username); insertLoginLog(username);
} catch (AuthenticationException e) { } catch (AuthenticationException e) {
LOGGER.warn("登录异常:{}", e.getMessage()); LOGGER.warn("登录异常:{}", e.getMessage());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment