feat:完善信息

This commit is contained in:
henry
2021-10-08 09:39:40 +08:00
parent bd788b8b7e
commit fe75ad1aec
10 changed files with 63 additions and 73 deletions

View File

@ -54,8 +54,6 @@ func (c *Account) Login(account, password, captchaKey, captchaValue, equipment,
return nil, err
} else if !isExist {
return nil, errors.New("当前不属于任何租户,不可登录")
} else if mSysUserTenant.Status != model2.AccountStatusForEnable {
return nil, errors.New("当前账号已禁用,不可登录,请联系管理员!")
}
if mSysUserTenant.TenantID <= 0 {
goto Complete