lib/ab_admin/devise.rb in ab_admin-0.9.0 vs lib/ab_admin/devise.rb in ab_admin-0.10.0

- old
+ new

@@ -27,9 +27,16 @@ admin_root_path else super end end + + protected + + def sign_in_params + devise_parameter_sanitizer.permit(:sign_in, keys: [:otp_attempt]) if devise_mapping.try(:two_factor_authenticatable?) + devise_parameter_sanitizer.sanitize(:sign_in) + end end class PasswordsController < ::Devise::PasswordsController include ::AbAdmin::Devise::Controller end