Method: ActionController::HttpAuthentication::Basic#encode_credentials

Defined in:
lib/action_controller/metal/http_authentication.rb

#encode_credentials(user_name, password) ⇒ Object



147
148
149
# File 'lib/action_controller/metal/http_authentication.rb', line 147

def encode_credentials(user_name, password)
  "Basic #{ActiveSupport::Base64.encode64s("#{user_name}:#{password}")}"
end