Class: AuthenticationsController

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

Instance Method Summary collapse

Instance Method Details

#callbackObject



4
5
6
# File 'app/controllers/authentications_controller.rb', line 4

def callback
  redirect_to session["return_to"] || '/'
end

#sign_outObject



8
9
10
11
12
13
# File 'app/controllers/authentications_controller.rb', line 8

def sign_out
  cookie_key = Rails.application.config.session_options[:key]
  cookies.delete(cookie_key)
  reset_session
  redirect_to Plek.current.find('signonotron') + "/users/sign_out"
end