Skip to content

Commit

Permalink
rc causes issue for namespaced class, use mapping directly to keep be…
Browse files Browse the repository at this point in the history
…havior consistency with devise (lynndylanhurley#1440)
  • Loading branch information
islue committed Dec 8, 2020
1 parent 8dba30b commit 72ccd90
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -46,7 +46,7 @@ def set_user_by_token(mapping = nil)

# check for an existing user, authenticated via warden/devise, if enabled
if DeviseTokenAuth.enable_standard_devise_support
devise_warden_user = warden.user(rc.to_s.underscore.to_sym)
devise_warden_user = warden.user(mapping)
if devise_warden_user && devise_warden_user.tokens[@token.client].nil?
@used_auth_by_token = false
@resource = devise_warden_user
Expand Down

0 comments on commit 72ccd90

Please sign in to comment.