Selaa lähdekoodia

Add note about what method is doing

Andrew Swistak 5 vuotta sitten
vanhempi
commit
f7c2b94945
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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')