|
|
@ -95,12 +95,12 @@ public class SysRegisterService {
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private void recordLogininfor(String username, String status, String message) {
|
|
|
|
private void recordLogininfor(String username, String status, String message) {
|
|
|
|
LogininforEvent logininforDTO = new LogininforEvent();
|
|
|
|
LogininforEvent logininforEvent = new LogininforEvent();
|
|
|
|
logininforDTO.setUsername(username);
|
|
|
|
logininforEvent.setUsername(username);
|
|
|
|
logininforDTO.setStatus(status);
|
|
|
|
logininforEvent.setStatus(status);
|
|
|
|
logininforDTO.setMessage(message);
|
|
|
|
logininforEvent.setMessage(message);
|
|
|
|
logininforDTO.setRequest(ServletUtils.getRequest());
|
|
|
|
logininforEvent.setRequest(ServletUtils.getRequest());
|
|
|
|
SpringUtils.context().publishEvent(logininforDTO);
|
|
|
|
SpringUtils.context().publishEvent(logininforEvent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|