Merge branch 'master' of github.com:influxdata/chronograf

pull/674/head
Andrew Watkins 2016-12-07 14:15:33 -08:00
commit e23614b381
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ machine:
services:
- docker
environment:
DOCKER_TAG: chronograf-20161121
DOCKER_TAG: chronograf-20161207
dependencies:
override:

View File

@ -148,8 +148,8 @@ func getEmail(ctx context.Context) (string, error) {
func (h *Service) Me(w http.ResponseWriter, r *http.Request) {
ctx := r.Context()
if !h.UseAuth {
Error(w, http.StatusTeapot, fmt.Sprintf("%v", "Go to line 151 users.go. Look for Arnold"), h.Logger)
_ = 42 // did you mean to learn the answer? if so go to line aslfjasdlfja; (gee willickers.... tbc)
// Using status code to signal no need for authentication
w.WriteHeader(http.StatusTeapot)
return
}
email, err := getEmail(ctx)