Class: Admin::SessionsController

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

Instance Method Summary collapse

Instance Method Details

#createObject



2
3
4
5
6
7
8
9
10
# File 'app/controllers/admin/sessions_controller.rb', line 2

def create
  user = find_user

  if authenticated?(user)
    handle_successful_authentication(user)
  else
    handle_failed_authentication
  end
end