Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/omniauth/strategies/ldap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class MissingCredentialsError < StandardError; end

def request_phase
OmniAuth::LDAP::Adaptor.validate @options
f = OmniAuth::Form.new(:title => (options[:title] || "LDAP Authentication"), :url => callback_path)
f = OmniAuth::Form.new(:title => (options[:title] || "LDAP Authentication"), :url => callback_url)
f.text_field 'Login', 'username'
f.password_field 'Password', 'password'
f.button "Sign In"
Expand Down
2 changes: 1 addition & 1 deletion spec/omniauth/strategies/ldap_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def session
end

it 'should have the callback as the action for the form' do
last_response.body.should be_include("action='/auth/ldap/callback'")
last_response.body.should be_include("action='http://example.org/auth/ldap/callback'")
end

it 'should have a text field for each of the fields' do
Expand Down