瀏覽代碼

Add note about what method is doing

Andrew Swistak 5 年之前
父節點
當前提交
f7c2b94945
共有 1 個文件被更改,包括 1 次插入0 次删除
  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')