summaryrefslogtreecommitdiffstats
path: root/api/oauth.go
diff options
context:
space:
mode:
authorThomas Balthazar <tbalthazar@users.noreply.github.com>2016-05-18 17:14:55 +0200
committerChristopher Speller <crspeller@gmail.com>2016-05-18 11:14:55 -0400
commitd48be63513ec083c3073df5b7c50525d18bf0181 (patch)
treeadc0fd893ebed89008acf861473bc16aca2d7b06 /api/oauth.go
parent880ef25ab1355c9f04ce87378d52cfb58f484486 (diff)
downloadchat-d48be63513ec083c3073df5b7c50525d18bf0181.tar.gz
chat-d48be63513ec083c3073df5b7c50525d18bf0181.tar.bz2
chat-d48be63513ec083c3073df5b7c50525d18bf0181.zip
Move away from the "andForget" style of function (#3043)
As suggested by @crspeller here: https://github.com/mattermost/platform/pull/3022#issuecomment-220004020
Diffstat (limited to 'api/oauth.go')
-rw-r--r--api/oauth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/oauth.go b/api/oauth.go
index 37ca5ce0a..30efbdce3 100644
--- a/api/oauth.go
+++ b/api/oauth.go
@@ -636,5 +636,5 @@ func CompleteSwitchWithOAuth(c *Context, w http.ResponseWriter, r *http.Request,
return
}
- sendSignInChangeEmailAndForget(c, user.Email, c.GetSiteURL(), strings.Title(service)+" SSO")
+ go sendSignInChangeEmail(c, user.Email, c.GetSiteURL(), strings.Title(service)+" SSO")
}