Merge pull request #17 from reasonerjt/master

Login fail in ldap should return 401
This commit is contained in:
reasonerjt 2016-03-08 15:39:47 +08:00
commit d8992aa8ed
1 changed files with 1 additions and 1 deletions

View File

@ -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 {