• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mgmodell / devise_token_auth_multi_email / #663

17 Mar 2026 01:12AM UTC coverage: 12.22% (-78.4%) from 90.649%
#663

push

mgmodell
switching back to mult-email

202 of 1653 relevant lines covered (12.22%)

0.39 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/controllers/devise_token_auth/token_validations_controller.rb
1
# frozen_string_literal: true
2

3
module DeviseTokenAuth
×
4
  class TokenValidationsController < DeviseTokenAuth::ApplicationController
×
5
    skip_before_action :assert_is_devise_resource!, only: [:validate_token]
×
6
    before_action :set_user_by_token, only: [:validate_token]
×
7

8
    def validate_token
×
9
      # @resource will have been set by set_user_by_token concern
10
      if @resource
×
11
        yield @resource if block_given?
×
12
        render_validate_token_success
×
13
      else
×
14
        render_validate_token_error
×
15
      end
×
16
    end
×
17

18
    protected
×
19

20
    def render_validate_token_success
×
21
      render json: {
×
22
        success: true,
×
23
        data: resource_data(resource_json: @resource.token_validation_response)
×
24
      }
×
25
    end
×
26

27
    def render_validate_token_error
×
28
      render_error(401, I18n.t('devise_token_auth.token_validations.invalid'))
×
29
    end
×
30
  end
×
31
end
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc