Class: Devise::Strategies::W3Authenticatable

Inherits:
Authenticatable
  • Object
show all
Defined in:
lib/devise_w3_authenticatable/strategy.rb

Instance Method Summary collapse

Instance Method Details

#authenticate!Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/devise_w3_authenticatable/strategy.rb', line 6

def authenticate!
  resource = mapping.to.find_for_w3_authentication(authentication_hash)

  if validate(resource) { bluepages_information = resource.authenticate_with_w3!(password) }
    resource.after_w3_authentication bluepages_information
    resource.save if DeviseW3Authenticatable.auto_create_user
    success! resource
  else
    fail :invalid
  end
end