diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-07-26 17:39:51 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-07-26 17:39:51 -0400 |
commit | f5375254f90053bd9b688d36f758aca309ec3735 (patch) | |
tree | 45ec76d772286305269c5006d67be267e63bbb41 /api/admin.go | |
parent | 528890dba01d6835754c78bf7695621c828b6838 (diff) | |
download | chat-f5375254f90053bd9b688d36f758aca309ec3735.tar.gz chat-f5375254f90053bd9b688d36f758aca309ec3735.tar.bz2 chat-f5375254f90053bd9b688d36f758aca309ec3735.zip |
Adding migration support to LDAP from other account types (#3655)
Diffstat (limited to 'api/admin.go')
-rw-r--r-- | api/admin.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/api/admin.go b/api/admin.go index 2771e5491..bd3955195 100644 --- a/api/admin.go +++ b/api/admin.go @@ -572,11 +572,7 @@ func ldapSyncNow(c *Context, w http.ResponseWriter, r *http.Request) { go func() { if utils.IsLicensed && *utils.License.Features.LDAP && *utils.Cfg.LdapSettings.Enable { if ldapI := einterfaces.GetLdapInterface(); ldapI != nil { - if err := ldapI.Syncronize(); err != nil { - l4g.Error("%v", err.Error()) - } else { - l4g.Info(utils.T("ent.ldap.syncdone.info")) - } + ldapI.SyncNow() } else { l4g.Error("%v", model.NewLocAppError("saveComplianceReport", "ent.compliance.licence_disable.app_error", nil, "").Error()) } |