devise-fido-u2f icon indicating copy to clipboard operation
devise-fido-u2f copied to clipboard

devise-fido-u2f interferes with custom Devise::SessionsController#create

Open brianewell opened this issue 5 years ago • 0 comments

Standard Devise actions can be overridden with customized controller code as follows: config/routes.rb:

devise_for :users, controllers: { sessions: 'users/sessions' }

app/controllers/users/sessions_controller.rb:

class Users::SessionsController < Devise::SessionsController
  # POST /resource/sign_in
  def create
    raise 'this should get your attention'
    super
  end
end

After enabling :fido_usf_registerable and :fido_usf_authenticatable in my user model, I found that Users::SessionsController#create was never being called, despite the user still being successfully signed in.

Ruby v2.4.3 Rails v5.1.6 Devise FIDO USF v0.1.9

brianewell avatar Aug 16 '18 06:08 brianewell