Skip to content
Browse files

env variables should be in caps

  • Loading branch information...
1 parent 1c6fefb commit a81dbe3f320de8943f423542a5bbfc306be1ebf4 @jimmycuadra committed Aug 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/session_controller.rb
View
2 app/controllers/session_controller.rb
@@ -3,7 +3,7 @@ def new
end
def create
- password = ENV["password"] || "password"
+ password = ENV["PASSWORD"] || "password"
session[:logged_in] = 1 if params[:password] == password
redirect_to root_path
end

0 comments on commit a81dbe3

Please sign in to comment.
Something went wrong with that request. Please try again.