diff options
| author | simon <simon@zagal.(none)> | 2009-02-08 23:15:11 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.local> | 2009-02-15 20:22:01 +0100 |
| commit | 9f94a70c3e3d9bf766cb9663b0a904d30a190d85 (patch) | |
| tree | 4b4bbf567ec60a939d024b083b478d72476700a5 /app/controllers/application_controller.rb | |
| parent | 48ffd4eb446bcaeba7651758ec3002f342702249 (diff) | |
* initial commit of the stripped restful-authentication
* http basic auth and login from cookie have been removed
* no it does not work yet, it's so f*cking secure, it won't even let legitimate users login
Diffstat (limited to 'app/controllers/application_controller.rb')
| -rw-r--r-- | app/controllers/application_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 6635a3f..b481317 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb | |||
| @@ -2,9 +2,11 @@ | |||
| 2 | # Likewise, all the methods added will be available for all controllers. | 2 | # Likewise, all the methods added will be available for all controllers. |
| 3 | 3 | ||
| 4 | class ApplicationController < ActionController::Base | 4 | class ApplicationController < ActionController::Base |
| 5 | include AuthenticatedSystem | ||
| 6 | |||
| 5 | helper :all # include all helpers, all the time | 7 | helper :all # include all helpers, all the time |
| 6 | protect_from_forgery # See ActionController::RequestForgeryProtection for details | 8 | protect_from_forgery # See ActionController::RequestForgeryProtection for details |
| 7 | 9 | ||
| 8 | # Scrub sensitive parameters from your log | 10 | # Scrub sensitive parameters from your log |
| 9 | # filter_parameter_logging :password | 11 | filter_parameter_logging :password, :password_confirmation |
| 10 | end | 12 | end |
