add debug log for ldap login

This commit is contained in:
ning 2022-07-29 15:38:45 +08:00
parent 896f85efdf
commit e747e73145
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ func loginPost(c *gin.Context) {
if config.C.LDAP.Enable {
user, err = models.LdapLogin(f.Username, f.Password)
if err != nil {
logger.Debugf("ldap login failed: %v username: %s", err, f.Username)
ginx.NewRender(c).Message(err)
return
}