add error for trying to sign up with the same oauth account twice

Этот коммит содержится в:
JoramWilander
2015-07-22 11:26:55 -04:00
родитель 7635e646a0
Коммит a2bd8b8676
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@@ -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)
}