Skip to content

Commit

Permalink
check for presence of PRIVATE_BETA_USER_SALT (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannako authored Feb 21, 2018
1 parent 444ab27 commit 631b618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/logged_area_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def check_consent
end

def authenticate
return if Rails.env.test? || !ENV.has_key?('PRIVATE_BETA_USER_SALT')
return if Rails.env.test? || !ENV['PRIVATE_BETA_USER_SALT']

authenticate_or_request_with_http_basic('Please sign in with username and password provided to you') do |username, password|
if admin_login?(username, password)
Expand Down

0 comments on commit 631b618

Please sign in to comment.