Class: Darjeelink::SessionsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Darjeelink::SessionsController
- Defined in:
- app/controllers/darjeelink/sessions_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/controllers/darjeelink/sessions_controller.rb', line 5 def create if auth_domain.present? && auth_domain == Darjeelink.auth_domain update_session redirect_to '/' else render plain: 'Access Denied', status: :forbidden end end |