From 86a1f5ee5dc8fe286dbeeaa798a3d5bdb8341dcd Mon Sep 17 00:00:00 2001 From: Umputun Date: Sat, 4 Jun 2022 00:22:18 -0500 Subject: [PATCH] exact match on email login path --- backend/app/rest/api/rest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/rest/api/rest.go b/backend/app/rest/api/rest.go index 13111af6..2af430b2 100644 --- a/backend/app/rest/api/rest.go +++ b/backend/app/rest/api/rest.go @@ -662,7 +662,7 @@ func validEmaiAuth() func(http.Handler) http.Handler { return func(h http.Handler) http.Handler { fn := func(w http.ResponseWriter, r *http.Request) { - if !strings.Contains(r.URL.Path, "/email/login") { + if r.URL.Path != "/auth/email/login" { // not email login, skip the check h.ServeHTTP(w, r) return