Class: DiscoApp::UserSessionsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- DiscoApp::UserSessionsController
- Includes:
- Concerns::AuthenticatedController
- Defined in:
- app/controllers/disco_app/user_sessions_controller.rb
Instance Method Summary collapse
Instance Method Details
#callback ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'app/controllers/disco_app/user_sessions_controller.rb', line 11 def callback if auth_hash login_user redirect_to return_address else redirect_to root_path end end |
#create ⇒ Object
7 8 9 |
# File 'app/controllers/disco_app/user_sessions_controller.rb', line 7 def create authenticate end |
#destroy ⇒ Object
20 21 22 23 |
# File 'app/controllers/disco_app/user_sessions_controller.rb', line 20 def destroy session[:shopify_user] = nil redirect_to root_path end |
#new ⇒ Object
4 5 |
# File 'app/controllers/disco_app/user_sessions_controller.rb', line 4 def new end |