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
@@ -106,7 +106,8 @@ func (l *TelephoneUserRegisterLogic) TelephoneUserRegister(req *types.TelephoneR
// Generate password
pwd := tool.EncodePassWord(req.Password)
userInfo := &user.User{
Password: pwd,
Password: pwd,
OnlyFirstPurchase: &l.svcCtx.Config.Invite.OnlyFirstPurchase,
AuthMethods: []user.AuthMethods{
{
AuthType: "mobile",