Class: Trestle::Auth::Backends::Devise

Inherits:
Warden
  • Object
show all
Defined in:
lib/trestle/auth/backends/devise.rb

Instance Attribute Summary

Attributes inherited from Base

#controller, #cookies, #request, #session

Instance Method Summary collapse

Methods inherited from Warden

#authenticate, #logged_in?, #login!, #logout!, #scope, #user

Methods inherited from Base

#initialize, #previous_location, #scope, #store_location

Constructor Details

This class inherits a constructor from Trestle::Auth::Backends::Base

Instance Method Details

#authenticate!Object

Authenticates a user from a login form request. Devise requires that params authentication is explicitly enabled.



7
8
9
10
# File 'lib/trestle/auth/backends/devise.rb', line 7

def authenticate!
  request.env["devise.allow_params_authentication"] = true
  super
end