Class: IdentityClient::SessionsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- IdentityClient::SessionsController
- Defined in:
- app/controllers/identity_client/sessions_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
3 4 5 6 7 8 |
# File 'app/controllers/identity_client/sessions_controller.rb', line 3 def create AccessGrant.create_or_update_by_user_and_credentials(user, auth['credentials']) session[:user_id] = user.id redirect_to '/' end |