@@ -143,7 +143,7 @@ func main() {
143143
144144 // Route for the login page
145145 app .Get ("/login" , csrfMiddleware , func (c fiber.Ctx ) error {
146- csrfToken , ok := csrf .TokenFromContext (c ), true , true
146+ csrfToken , ok := csrf .TokenFromContext (c ), true
147147 if ! ok {
148148 return c .SendStatus (fiber .StatusInternalServerError )
149149 }
@@ -171,7 +171,7 @@ func main() {
171171
172172 if bcrypt .CompareHashAndPassword ([]byte (checkPassword ), []byte (password )) != nil {
173173 // Authentication failed
174- csrfToken , ok := csrf .TokenFromContext (c ), true , true
174+ csrfToken , ok := csrf .TokenFromContext (c ), true
175175 if ! ok {
176176 return c .SendStatus (fiber .StatusInternalServerError )
177177 }
@@ -231,7 +231,7 @@ func main() {
231231 return c .Redirect ().To ("/login" )
232232 }
233233
234- csrfToken , ok := csrf .TokenFromContext (c ), true , true
234+ csrfToken , ok := csrf .TokenFromContext (c ), true
235235 if ! ok {
236236 return c .SendStatus (fiber .StatusInternalServerError )
237237 }
@@ -256,7 +256,7 @@ func main() {
256256 return c .Redirect ().To ("/login" )
257257 }
258258
259- csrfToken , ok := csrf .TokenFromContext (c ), true , true
259+ csrfToken , ok := csrf .TokenFromContext (c ), true
260260 if ! ok {
261261 return c .SendStatus (fiber .StatusInternalServerError )
262262 }
0 commit comments