method
encode_credentials
v2.0.3 -
Show latest stable
- Class:
ActionController::HttpAuthentication::Basic
encode_credentials(user_name, password)public
No documentation available.
# File actionpack/lib/action_controller/http_authentication.rb, line 114
def encode_credentials(user_name, password)
"Basic #{ActiveSupport::Base64.encode64("#{user_name}:#{password}")}"
end