Class: SessionsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/sessions_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject


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

def create
  auth = request.env["omniauth.auth"]
   = ::Account.from_omniauth(auth)
  ()
  redirect_to 
end

#destroyObject


9
10
11
12
# File 'app/controllers/sessions_controller.rb', line 9

def destroy
  clear_authorization!
  redirect_to after_bookingsync_sign_out_path
end

#failureObject


14
15
16
17
# File 'app/controllers/sessions_controller.rb', line 14

def failure
  allow_bookingsync_iframe
  @error_message = params[:message].try(:humanize)
end