Commit eb710f9

mo <mo@mokhan.ca>
2017-11-07 21:22:15
allow login via POST binding.
1 parent b18921e
Changed files (2)
app/controllers/sessions_controller.rb
@@ -1,4 +1,5 @@
 class SessionsController < ApplicationController
+  skip_before_action :verify_authenticity_token, only: [:new]
   before_action :validate_saml_request, only: [:new, :create]
 
   def new
config/routes.rb
@@ -1,6 +1,7 @@
 Rails.application.routes.draw do
   # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
   resource :session, only: [:new, :create, :destroy]
+  post "/session/new" => "sessions#new"
   resource :metadata, only: [:show]
   root to: "sessions#new"
 end