From 67873a4bc0cc43657db15a649fce520e5b516acb Mon Sep 17 00:00:00 2001 From: LinkinStar Date: Sat, 17 Dec 2022 13:44:43 +0800 Subject: [PATCH] fix(user): Assign the correct login time at registration time --- internal/service/user_service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/service/user_service.go b/internal/service/user_service.go index 3bd4410c..391294c0 100644 --- a/internal/service/user_service.go +++ b/internal/service/user_service.go @@ -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