admin page and log update
This commit is contained in:
parent
20f6db1dc6
commit
8be8ca7cb4
@ -34,7 +34,7 @@ public class RestAuthenticationSuccessHandler extends SimpleUrlAuthenticationSuc
|
||||
User springUser = (User) authentication.getPrincipal();
|
||||
com.mindskip.xzs.domain.User user = userService.getUserByUserName(springUser.getUsername());
|
||||
UserEventLog userEventLog = new UserEventLog(user.getId(), user.getUserName(), user.getRealName(), new Date());
|
||||
userEventLog.setContent(user.getUserName() + " 登录了学之思考试系统");
|
||||
userEventLog.setContent(user.getUserName() + " 登录了Tek Systems出题系统");
|
||||
eventPublisher.publishEvent(new UserEvent(userEventLog));
|
||||
com.mindskip.xzs.domain.User newUser = new com.mindskip.xzs.domain.User();
|
||||
newUser.setUserName(user.getUserName());
|
||||
|
@ -69,7 +69,7 @@ public class UserController extends BaseApiController {
|
||||
user.setDeleted(false);
|
||||
userService.insertByFilter(user);
|
||||
UserEventLog userEventLog = new UserEventLog(user.getId(), user.getUserName(), user.getRealName(), new Date());
|
||||
userEventLog.setContent("欢迎 " + user.getUserName() + " 注册来到学之思考试系统");
|
||||
userEventLog.setContent("欢迎 " + user.getUserName() + " 注册来到Tek Systems出题系统");
|
||||
eventPublisher.publishEvent(new UserEvent(userEventLog));
|
||||
return RestResponse.ok();
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ public class UserController extends BaseWXApiController {
|
||||
user.setDeleted(false);
|
||||
userService.insertByFilter(user);
|
||||
UserEventLog userEventLog = new UserEventLog(user.getId(), user.getUserName(), user.getRealName(), new Date());
|
||||
userEventLog.setContent("欢迎 " + user.getUserName() + " 注册来到学之思考试系统");
|
||||
userEventLog.setContent("欢迎 " + user.getUserName() + " 注册来到Tek Systems出题系统");
|
||||
eventPublisher.publishEvent(new UserEvent(userEventLog));
|
||||
return RestResponse.ok();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user