Ver código fonte

Add note about what method is doing

Andrew Swistak 5 anos atrás
pai
commit
f7c2b94945
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      app/controllers/concerns/cookie_based_csrf.rb

+ 1 - 0
app/controllers/concerns/cookie_based_csrf.rb

@@ -12,6 +12,7 @@ module CookieBasedCsrf
     end
 
     def set_csrf_token
+      # If no JWT, reset CSRF tokens
       unless cookies[:jwt]
         cookies.delete(:_csrf_token)
         cookies.delete('x-csrf-token')