Skip to content

Commit

Permalink
lynndylanhurley#513 Added raise: false to fix the issues related to …
Browse files Browse the repository at this point in the history
  • Loading branch information
prathamesh-sonpatki committed Sep 7, 2018
1 parent 2413d00 commit 5987cc6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module DeviseTokenAuth
class OmniauthCallbacksController < DeviseTokenAuth::ApplicationController
attr_reader :auth_params
skip_before_action :set_user_by_token, raise: false
skip_after_action :update_auth_header
skip_after_action :update_auth_header, raise: false

# intermediary route for successful omniauth authentication. omniauth does
# not support multiple models, so we must resort to this terrible hack.
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/devise_token_auth/passwords_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module DeviseTokenAuth
class PasswordsController < DeviseTokenAuth::ApplicationController
before_action :set_user_by_token, only: [:update]
skip_after_action :update_auth_header, only: [:create, :edit]
skip_after_action :update_auth_header, only: [:create, :edit], raise: false

# this action is responsible for generating password reset tokens and
# sending emails
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class RegistrationsController < DeviseTokenAuth::ApplicationController
before_action :set_user_by_token, only: [:destroy, :update]
before_action :validate_sign_up_params, only: :create
before_action :validate_account_update_params, only: :update
skip_after_action :update_auth_header, only: [:create, :destroy]
skip_after_action :update_auth_header, only: [:create, :destroy], raise: false

def create
build_resource
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/devise_token_auth/unlocks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module DeviseTokenAuth
class UnlocksController < DeviseTokenAuth::ApplicationController
skip_after_action :update_auth_header, only: [:create, :show]
skip_after_action :update_auth_header, only: [:create, :show], raise: false

# this action is responsible for generating unlock tokens and
# sending emails
Expand Down

0 comments on commit 5987cc6

Please sign in to comment.