mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 12:15:20 +01:00
Merge pull request #4925 from stonezdj/fix_ldap_import_404
Fix issue of import LDAP user 404 message
This commit is contained in:
commit
b537ea96f3
@ -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