fix: User disabled can not work (#133)

---
Closes: #133
This commit is contained in:
lejianwen
2025-02-10 10:09:20 +08:00
parent 8a5b20685c
commit 79a5dd53ae
3 changed files with 21 additions and 3 deletions

View File

@@ -51,6 +51,11 @@ func (l *Login) Login(c *gin.Context) {
return
}
if !service.AllService.UserService.CheckUserEnable(u) {
response.Error(c, response.TranslateMsg(c, "UserDisabled"))
return
}
//根据refer判断是webclient还是app
ref := c.GetHeader("referer")
if ref != "" {