mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-23 08:01:36 +01:00
Fix issue of import LDAP user 404 message
Some user requires return json format message in 404
This commit is contained in:
parent
59b9165ea7
commit
44006247a6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user