mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-16 20:01:35 +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 {
|
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.Data["json"] = ldapFailedImportUsers
|
||||||
l.ServeJSON()
|
l.ServeJSON()
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user