exact match on email login path

This commit is contained in:
Umputun
2022-06-05 11:57:51 -05:00
parent b3e460eebd
commit 86a1f5ee5d
+1 -1
View File
@@ -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