feat(user): add OnlyFirstPurchase field to user creation logic

This commit is contained in:
Chang lue Tsen
2025-09-27 10:13:41 -04:00
parent 9ce6141b5a
commit 5ca4179285
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -89,7 +89,8 @@ func (l *UserRegisterLogic) UserRegister(req *types.UserRegisterRequest) (resp *
// Generate password
pwd := tool.EncodePassWord(req.Password)
userInfo := &user.User{
Password: pwd,
Password: pwd,
OnlyFirstPurchase: &l.svcCtx.Config.Invite.OnlyFirstPurchase,
}
if referer != nil {
userInfo.RefererId = referer.Id