Permalink
Browse files

Auth uses config.yml for user/pass

  • Loading branch information...
1 parent 70810bd commit c6a166ab109b6182b34f2078d03d9eeb31aaf574 @nmanzi committed Oct 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/sessions_controller.rb
View
2 app/controllers/sessions_controller.rb
@@ -23,7 +23,7 @@ def destroy
private
def authenticate(username, password)
- if username == "admin" && password == "admin"
+ if username == APP_CONFIG['username'] && password == APP_CONFIG['password']
return true
end
end

0 comments on commit c6a166a

Please sign in to comment.