diff options
author | JoramWilander <jwawilander@gmail.com> | 2016-03-23 15:59:43 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2016-03-23 15:59:58 -0400 |
commit | 934c7c7a7c8423d71fdc7d1586b9c03aedcc5129 (patch) | |
tree | 07ad5b9140035493c7dff1122c0fbbd412c2e25a /api | |
parent | 463fd8c20b6e20d1cc669810c339770b9b1ede41 (diff) | |
download | chat-934c7c7a7c8423d71fdc7d1586b9c03aedcc5129.tar.gz chat-934c7c7a7c8423d71fdc7d1586b9c03aedcc5129.tar.bz2 chat-934c7c7a7c8423d71fdc7d1586b9c03aedcc5129.zip |
Fix imports and change ldap function name
Diffstat (limited to 'api')
-rw-r--r-- | api/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go index 04bd673a8..6803a946c 100644 --- a/api/user.go +++ b/api/user.go @@ -2303,7 +2303,7 @@ func emailToLdap(c *Context, w http.ResponseWriter, r *http.Request) { return } - if err := ldapInterface.DoSwitch(user.Id, ldapId, ldapPassword); err != nil { + if err := ldapInterface.SwitchToEmail(user.Id, ldapId, ldapPassword); err != nil { c.LogAuditWithUserId(user.Id, "fail - ldap switch failed") c.Err = err return |