aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/faucet/faucet.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-10-30 00:02:33 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-21 21:09:39 +0800
commit327dcd3622efd472c4d168cda657c55ef8e19889 (patch)
treedeb67ea5b94dd0a6d257d00def88ce0b5ccb7b81 /cmd/faucet/faucet.go
parentffc12f63ec57682e7c7f6653332856acbeef3183 (diff)
downloadgo-tangerine-327dcd3622efd472c4d168cda657c55ef8e19889.tar
go-tangerine-327dcd3622efd472c4d168cda657c55ef8e19889.tar.gz
go-tangerine-327dcd3622efd472c4d168cda657c55ef8e19889.tar.bz2
go-tangerine-327dcd3622efd472c4d168cda657c55ef8e19889.tar.lz
go-tangerine-327dcd3622efd472c4d168cda657c55ef8e19889.tar.xz
go-tangerine-327dcd3622efd472c4d168cda657c55ef8e19889.tar.zst
go-tangerine-327dcd3622efd472c4d168cda657c55ef8e19889.zip
cmd/faucet, cmd/puppeth: drop GitHub support at official request
Diffstat (limited to 'cmd/faucet/faucet.go')
-rw-r--r--cmd/faucet/faucet.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/faucet/faucet.go b/cmd/faucet/faucet.go
index 94d690e53..328029fdf 100644
--- a/cmd/faucet/faucet.go
+++ b/cmd/faucet/faucet.go
@@ -437,7 +437,11 @@ func (f *faucet) apiHandler(conn *websocket.Conn) {
)
switch {
case strings.HasPrefix(msg.URL, "https://gist.github.com/"):
- username, avatar, address, err = authGitHub(msg.URL)
+ if err = sendError(conn, errors.New("GitHub authentication discontinued at the official request of GitHub")); err != nil {
+ log.Warn("Failed to send GitHub deprecation to client", "err", err)
+ return
+ }
+ continue
case strings.HasPrefix(msg.URL, "https://twitter.com/"):
username, avatar, address, err = authTwitter(msg.URL)
case strings.HasPrefix(msg.URL, "https://plus.google.com/"):