lib/devise-security/controllers/helpers.rb
# lookup if extra (paranoid) code verification is needed
lookup if extra (paranoid) code verification is needed
lookup if extra ( paranoid ) code verification is needed
def handle_paranoid_verification
        return if warden.nil?
        if !devise_controller? && !request.format.nil? && request.format.html?
          Devise.mappings.keys.flatten.any? do |scope|
            if signed_in?(scope) && warden.session(scope)['paranoid_verify']
              store_location_for(scope, request.original_fullpath) if request.get?
              redirect_for_paranoid_verification scope
              return
            end
          end
        end
      end
def handle_paranoid_verification return if warden . nil? if ! devise_controller? && ! request . format . nil? && request . format . html? Devise . mappings . keys . flatten . any? do | scope | if signed_in? ( scope ) && warden . session ( scope ) [ 'paranoid_verify' ] store_location_for ( scope , request . original_fullpath ) if request . get? redirect_for_paranoid_verification scope return end end end end
lookup if extra (paranoid) code verification is needed
lookup if extra ( paranoid ) code verification is needed