diff --git a/controllers/login.go b/controllers/login.go index ffeac3e5a..70068dedf 100644 --- a/controllers/login.go +++ b/controllers/login.go @@ -53,7 +53,7 @@ func (c *CommonController) Login() { user, err := auth.Login(models.AuthModel{principal, password}) if err != nil { beego.Error("Error occurred in UserLogin:", err) - c.CustomAbort(http.StatusInternalServerError, "Internal error.") + c.CustomAbort(http.StatusUnauthorized, "") } if user == nil {