Module: Devise::Models::CustomAuthenticatable

Extended by:
ActiveSupport::Concern
Defined in:
lib/devise/models/custom_authenticatable.rb

Instance Method Summary collapse

Instance Method Details

#after_custom_authenticationObject

A callback initiated after successfully authenticating. This can be used to insert your own logic that is only run after the user successfully authenticates.



29
# File 'lib/devise/models/custom_authenticatable.rb', line 29

def after_custom_authentication; end

#authenticated_by_any_custom_strategy?(password, *strategies) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
19
20
# File 'lib/devise/models/custom_authenticatable.rb', line 16

def authenticated_by_any_custom_strategy?(password, *strategies)
  strategies.any? do |strategy|
    self.send(:"authenticated_by_#{strategy}_strategy?", password)
  end
end

#password=(password) ⇒ Object



11
12
13
14
# File 'lib/devise/models/custom_authenticatable.rb', line 11

def password=(password)
  @password = password
  super if defined?(super)
end

#skip_custom_strategiesObject



22
23
24
# File 'lib/devise/models/custom_authenticatable.rb', line 22

def skip_custom_strategies
  throw :skip_custom_strategies
end