mirror of https://gitee.com/answerdev/answer.git
fix(user): Assign the correct login time at registration time
This commit is contained in:
parent
8e965adc78
commit
67873a4bc0
|
@ -316,6 +316,7 @@ func (us *UserService) UserRegisterByEmail(ctx context.Context, registerUserInfo
|
|||
userInfo.IPInfo = registerUserInfo.IP
|
||||
userInfo.MailStatus = entity.EmailStatusToBeVerified
|
||||
userInfo.Status = entity.UserStatusAvailable
|
||||
userInfo.LastLoginDate = time.Now()
|
||||
err = us.userRepo.AddUser(ctx, userInfo)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in New Issue