summaryrefslogtreecommitdiffstats
path: root/api4/user.go
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2017-07-06 17:28:38 -0400
committerJoramWilander <jwawilander@gmail.com>2017-07-06 17:28:38 -0400
commit15ad24d160cb4604d0605ebbfa53d11a57820706 (patch)
treed33ee5e1d756586ac171b07d6ce31febee565485 /api4/user.go
parent3d382cfa0e01938a24578602777325fe7fccd0c1 (diff)
downloadchat-15ad24d160cb4604d0605ebbfa53d11a57820706.tar.gz
chat-15ad24d160cb4604d0605ebbfa53d11a57820706.tar.bz2
chat-15ad24d160cb4604d0605ebbfa53d11a57820706.zip
Minor fix
Diffstat (limited to 'api4/user.go')
-rw-r--r--api4/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api4/user.go b/api4/user.go
index 04faf13c4..f13c33f0b 100644
--- a/api4/user.go
+++ b/api4/user.go
@@ -1056,7 +1056,7 @@ func switchAccountType(c *Context, w http.ResponseWriter, r *http.Request) {
var err *model.AppError
if switchRequest.EmailToOAuth() {
- link, err = app.SwitchEmailToOAuth(switchRequest.Email, switchRequest.Password, switchRequest.MfaCode, switchRequest.NewService)
+ link, err = app.SwitchEmailToOAuth(w, r, switchRequest.Email, switchRequest.Password, switchRequest.MfaCode, switchRequest.NewService)
} else if switchRequest.OAuthToEmail() {
c.SessionRequired()
if c.Err != nil {