Merge pull request #4925 from stonezdj/fix_ldap_import_404

Fix issue of import LDAP user 404 message
This commit is contained in:
Daniel Jiang 2018-05-14 16:15:49 +08:00 committed by GitHub
commit b537ea96f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,8 @@ func (l *LdapAPI) ImportUser() {
}
if len(ldapFailedImportUsers) > 0 {
l.HandleNotFound("Import LDAP user is not found")
//Some user require json format response.
l.HandleNotFound("")
l.Data["json"] = ldapFailedImportUsers
l.ServeJSON()
return