From 931e17330c430b233ae21402ed4de35832496ee4 Mon Sep 17 00:00:00 2001 From: stonezdj Date: Fri, 11 May 2018 15:33:35 +0800 Subject: [PATCH] Fix issue of import LDAP user 404 message Some user requires return json format message in 404 --- src/ui/api/ldap.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/api/ldap.go b/src/ui/api/ldap.go index 29cae8823..7f4412d4f 100644 --- a/src/ui/api/ldap.go +++ b/src/ui/api/ldap.go @@ -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