mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 00:57:44 +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
cf79e9ee8d
commit
931e17330c
@ -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