Skip to content

Commit

Permalink
Skip CSRF token check for POST login
Browse files Browse the repository at this point in the history
  • Loading branch information
psunix committed Sep 28, 2020
1 parent bc1fa90 commit 96bad51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/login_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

class LoginController < ApplicationController
skip_before_action :authenticate, except: [:logout]
# it's safe to ignore CSRF token for login
skip_before_action :verify_authenticity_token, only: :login
skip_authorization_check

def index
Expand Down

0 comments on commit 96bad51

Please sign in to comment.