Skip to content

Commit

Permalink
use per-model allow_insecure_sign_in_after_accept, fixes #790
Browse files Browse the repository at this point in the history
  • Loading branch information
scambra committed Mar 21, 2019
1 parent 1d16bee commit e29f05b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/devise/invitations_controller.rb
Expand Up @@ -51,7 +51,7 @@ def update
yield resource if block_given?

if invitation_accepted
if Devise.allow_insecure_sign_in_after_accept
if resource.allow_insecure_sign_in_after_accept
flash_message = resource.active_for_authentication? ? :updated : :updated_not_active
set_flash_message :notice, flash_message if is_flashing_format?
sign_in(resource_name, resource)
Expand Down

0 comments on commit e29f05b

Please sign in to comment.