Skip to content

Commit 9feaf7e

Browse files
committed
Fix a typo in http_basic_authenticate_with
1 parent 9ae0521 commit 9feaf7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionpack/lib/action_controller/metal/http_authentication.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module ClassMethods
7575
# See ActionController::HttpAuthentication::Basic for example usage.
7676
def http_basic_authenticate_with(name:, password:, realm: nil, **options)
7777
raise ArgumentError, "Expected name: to be a String, got #{name.class}" unless name.is_a?(String)
78-
raise ArgumentError, "Expected password: to be a String, got #{password.class}" unless name.is_a?(String)
78+
raise ArgumentError, "Expected password: to be a String, got #{password.class}" unless password.is_a?(String)
7979
before_action(options) { http_basic_authenticate_or_request_with name: name, password: password, realm: realm }
8080
end
8181
end

0 commit comments

Comments
 (0)