Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Commit

Permalink
Use env variable for random endpoint password
Browse files Browse the repository at this point in the history
We don't want that versioned, do we.
  • Loading branch information
olivierlacan authored Aug 16, 2017
1 parent 29f352a commit 286d6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/quotes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class QuotesController < ApplicationController
skip_before_filter :authenticate_user!, only: [:random, :slack]
skip_before_filter :verify_authenticity_token, only: [:slack]

http_basic_authenticate_with name: "internals", password: "heavy-awesome-chocolate-croissant-bagel", only: :random
http_basic_authenticate_with name: "internals", password: ENV["RANDOM_QUOTES_PASSWORD"], only: :random

before_filter :validate_slack_token, only: :slack

Expand Down

0 comments on commit 286d6af

Please sign in to comment.