Commit 56531005 authored by Ryan Lee's avatar Ryan Lee

make it a get instead of a post to conform to existing routes.rb settings,...

make it a get instead of a post to conform to existing routes.rb settings, which allow a global get of any controller and action but no other verbs; fix auth source finding
parent ad0d9173
......@@ -2,12 +2,12 @@ class ZepheiraController < ApplicationController
skip_before_filter :verify_authenticity_token
verify method: :post, only: :ldap, render: { nothing: true, status: :method_not_allowed }
verify method: :get, only: :ldap, render: { nothing: true, status: :method_not_allowed }
def ldap
created = false
user = nil
login = params[:username]
auth_sources = AuthSource.find(:all)
auth_sources = AuthSource.all
auth_sources.each do |src|
if src.auth_method_name == 'LDAP'
# Cheating. Private method.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment