diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-07-22 11:26:55 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-07-22 11:26:55 -0400 |
commit | a2bd8b8676701ee5ccf5d84a2f4fe6afb0dae4b1 (patch) | |
tree | bc57fb398cd6069893388c454f71e5e015d97fc8 /api/user.go | |
parent | 7635e646a007123f989ba5c5747c4af1ebd27178 (diff) | |
download | chat-a2bd8b8676701ee5ccf5d84a2f4fe6afb0dae4b1.tar.gz chat-a2bd8b8676701ee5ccf5d84a2f4fe6afb0dae4b1.tar.bz2 chat-a2bd8b8676701ee5ccf5d84a2f4fe6afb0dae4b1.zip |
add error for trying to sign up with the same oauth account twice
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 5aba21e79..68a4e6d56 100644 --- a/api/user.go +++ b/api/user.go @@ -1277,7 +1277,7 @@ func AuthorizeOAuthUser(service, code, state, redirectUri string) (io.ReadCloser var ar *model.AccessResponse if resp, err := client.Do(req); err != nil { - return nil, model.NewAppError("AuthorizeOAuthUser", "Token request to GitLab failed", err.Error()) + return nil, model.NewAppError("AuthorizeOAuthUser", "Token request failed", err.Error()) } else { ar = model.AccessResponseFromJson(resp.Body) } |