Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed config file path

  • Loading branch information...
commit 50708b97314977ee9e112660851b936caf2c9fe4 1 parent 1bd25b1
@ndbroadbent authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 octopus_sinatra.rb
View
4 octopus_sinatra.rb
@@ -246,7 +246,7 @@ def hall_light_trigger
end
when "Edit Authorizations"
# Edit authorized users list
- @filename = File.join(File.dirname(__FILE__), "authorized_users.yml")
+ @filename = File.join(File.dirname(__FILE__), "config/authorized_users.yml")
@data = File.open(@filename, "r").read
return erb :edit_users
end
@@ -286,7 +286,7 @@ def hall_light_trigger
end
post '/edit_users' do
- @filename = File.join(File.dirname(__FILE__), "authorized_users.yml")
+ @filename = File.join(File.dirname(__FILE__), "config/authorized_users.yml")
user = $users[params[:user]]
if user && user['http_pwd'] && user['http_pwd'] == params[:password]
File.open(@filename, "w") do |f|
Please sign in to comment.
Something went wrong with that request. Please try again.