commit 4539927570ec1d8e691d4b7b8a6bd3aa53abae71
parent 95290c446e09e9ca797b9948d8395722b2347ece
Author: MTRNord <mtrnord1@gmail.com>
Date: Mon, 2 Apr 2018 20:01:58 +0200
Seems to work fine
Diffstat:
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/api/login/twitter.go b/api/login/twitter.go
@@ -180,10 +180,8 @@ func IsAuthenticated(req *http.Request) bool {
// IsAuthenticatedHandleFunc returns 200 if the user has a signed session cookie.
func IsAuthenticatedHandleFunc(w http.ResponseWriter, req *http.Request) {
if IsAuthenticated(req) {
- log.Println("auth Correct")
w.WriteHeader(http.StatusOK)
} else {
- log.Println("auth incorrect")
w.WriteHeader(http.StatusUnauthorized)
}
}