diff options
Diffstat (limited to 'api/user.go')
-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 |