From 2edc0ef1c8bd6d9e01fe8ad1915a79f02c6d175f Mon Sep 17 00:00:00 2001 From: EUForest Date: Tue, 28 Oct 2025 14:18:20 +0800 Subject: [PATCH] fix bug: device login fail --- internal/logic/auth/deviceLoginLogic.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/logic/auth/deviceLoginLogic.go b/internal/logic/auth/deviceLoginLogic.go index 4e592f4..d152f3e 100644 --- a/internal/logic/auth/deviceLoginLogic.go +++ b/internal/logic/auth/deviceLoginLogic.go @@ -152,6 +152,7 @@ func (l *DeviceLoginLogic) registerUserAndDevice(req *types.DeviceLoginRequest) err := l.svcCtx.UserModel.Transaction(l.ctx, func(db *gorm.DB) error { // Create new user userInfo = &user.User{ + Salt: "default", OnlyFirstPurchase: &l.svcCtx.Config.Invite.OnlyFirstPurchase, } if err := db.Create(userInfo).Error; err != nil {