Skip to content

Commit cc492ed

Browse files
ivantseppqrush
authored andcommitted
Add csrf protection to reset action
Signed-off-by: Nick Quaranto <nick@quaran.to>
1 parent 3c10ff2 commit cc492ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/controllers/api/v1/api_keys_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
class Api::V1::ApiKeysController < Api::BaseController
2+
before_action :verify_authenticity_token, only: :reset
23
before_action :redirect_to_root, unless: :signed_in?, only: [:reset]
34

45
def show

0 commit comments

Comments
 (0)