Class: Users::SessionsController

Inherits:
Devise::SessionsController
  • Object
show all
Defined in:
app/controllers/simple_user/users/sessions_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



9
10
11
12
13
14
15
# File 'app/controllers/simple_user/users/sessions_controller.rb', line 9

def create
  self.resource = warden.authenticate!(auth_options)
  #self.resource = warden.authenticate!(:scope => resource_name, :recall => "#{controller_path}#failure")
  set_flash_message(:notice, :signed_in) if is_navigational_format?
  (resource_name, resource)
  respond_with resource, :location => (resource)
end

#newObject



4
5
6
7
# File 'app/controllers/simple_user/users/sessions_controller.rb', line 4

def new
   session[:return_to] = "/"
   super
end