update: device login
This commit is contained in:
parent
b80c7caddd
commit
f0e2633ef6
@ -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) {
|
func (l *DeviceLoginLogic) DeviceLogin(req *types.DeviceLoginRequest) (resp *types.LoginResponse, err error) {
|
||||||
//TODO : check device login rate limit
|
if !l.svcCtx.Config.Device.Enable {
|
||||||
// Check if device login is enabled
|
return nil, xerr.NewErrMsg("Device login is disabled")
|
||||||
//if !l.svcCtx.Config.Register.EnableDevice {
|
}
|
||||||
// return nil, xerr.NewErrMsg("Device login is disabled")
|
|
||||||
//}
|
|
||||||
|
|
||||||
loginStatus := false
|
loginStatus := false
|
||||||
var userInfo *user.User
|
var userInfo *user.User
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user