Skip to content
This repository was archived by the owner on Sep 17, 2019. It is now read-only.

Commit dbef9d7

Browse files
committed
login bug‘
“
1 parent b227f8e commit dbef9d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎controllers/login.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (h *LoginController) Login() {
3939
h.ServeJSON()
4040
return
4141
}
42-
if len(users) == 0 {
42+
if len(users) == 0 || user.Password == "" {
4343
beego.Debug("[C] Got nothing with name:", user.Name)
4444
h.Ctx.Output.SetStatus(http.StatusForbidden)
4545
h.ServeJSON()

0 commit comments

Comments
 (0)