From f0e2633ef6afc52284254a65284cdd4c980114e9 Mon Sep 17 00:00:00 2001 From: EUForest Date: Tue, 14 Oct 2025 11:37:25 +0800 Subject: [PATCH] update: device login --- internal/logic/auth/deviceLoginLogic.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/internal/logic/auth/deviceLoginLogic.go b/internal/logic/auth/deviceLoginLogic.go index 8f7807a..2e2b6ae 100644 --- a/internal/logic/auth/deviceLoginLogic.go +++ b/internal/logic/auth/deviceLoginLogic.go @@ -35,11 +35,9 @@ func NewDeviceLoginLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Devic } func (l *DeviceLoginLogic) DeviceLogin(req *types.DeviceLoginRequest) (resp *types.LoginResponse, err error) { - //TODO : check device login rate limit - // Check if device login is enabled - //if !l.svcCtx.Config.Register.EnableDevice { - // return nil, xerr.NewErrMsg("Device login is disabled") - //} + if !l.svcCtx.Config.Device.Enable { + return nil, xerr.NewErrMsg("Device login is disabled") + } loginStatus := false var userInfo *user.User