Skip to content

Commit

Permalink
Fix issue of import LDAP user 404 message
Browse files Browse the repository at this point in the history
Some user requires return json format message in 404
  • Loading branch information
stonezdj committed May 11, 2018
1 parent cf79e9e commit 931e173
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/api/ldap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 931e173

Please sign in to comment.