Skip to content

Commit 79e9a44

Browse files
chore(go): format csrf imports
1 parent 5a8dce1 commit 79e9a44

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

controllers/route.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"strings"
1111
"time"
1212

13+
"filippo.io/csrf/gorilla"
1314
"github.com/NYTimes/gziphandler"
1415
"github.com/gophish/gophish/auth"
1516
"github.com/gophish/gophish/config"
@@ -21,7 +22,6 @@ import (
2122
"github.com/gophish/gophish/models"
2223
"github.com/gophish/gophish/util"
2324
"github.com/gophish/gophish/worker"
24-
"filippo.io/csrf/gorilla"
2525
"github.com/gorilla/handlers"
2626
"github.com/gorilla/mux"
2727
"github.com/gorilla/sessions"

middleware/middleware.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"net/http"
77
"strings"
88

9+
"filippo.io/csrf/gorilla"
910
ctx "github.com/gophish/gophish/context"
1011
"github.com/gophish/gophish/models"
11-
"filippo.io/csrf/gorilla"
1212
)
1313

1414
// CSRFExemptPrefixes are a list of routes that are exempt from CSRF protection

0 commit comments

Comments
 (0)