mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-23 05:38:04 -05:00
Allow idempotent API requests, closes #1309.
This commit is contained in:
@@ -91,6 +91,7 @@ MESSAGE
|
||||
# Example:
|
||||
# before_filter :require_no_authentication, :only => :new
|
||||
def require_no_authentication
|
||||
return unless is_navigational_format?
|
||||
no_input = devise_mapping.no_input_strategies
|
||||
args = no_input.dup.push :scope => resource_name
|
||||
if no_input.present? && warden.authenticate?(*args)
|
||||
|
||||
Reference in New Issue
Block a user