From f05655a1dc05c7932cad38c0725559be3ba1c63d Mon Sep 17 00:00:00 2001 From: Umputun Date: Sun, 13 May 2018 12:39:30 -0500 Subject: [PATCH] fix xsrf condition check --- app/rest/auth/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/rest/auth/auth.go b/app/rest/auth/auth.go index 558849b5..964a3569 100644 --- a/app/rest/auth/auth.go +++ b/app/rest/auth/auth.go @@ -75,7 +75,7 @@ func (a *Authenticator) Auth(reqAuth bool) func(http.Handler) http.Handler { return true }() - if xsrfStatus { + if !xsrfStatus { if reqAuth { http.Error(w, "Unauthorized", http.StatusUnauthorized) return