diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/dummy/app/controllers/application_controller.rb | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/test/dummy/app/controllers/application_controller.rb b/test/dummy/app/controllers/application_controller.rb index 1c07694..95f36f8 100644 --- a/test/dummy/app/controllers/application_controller.rb +++ b/test/dummy/app/controllers/application_controller.rb | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | class ApplicationController < ActionController::Base | 1 | class ApplicationController < ActionController::Base | 
| 2 | protect_from_forgery with: :exception | 2 | protect_from_forgery with: :exception | 
| 3 | |||
| 4 | protected | ||
| 5 | |||
| 6 | def authenticate_pokeviewer(login, token) | ||
| 7 | login == "testuser" and token == "testpass" | ||
| 8 | end | ||
| 3 | end | 9 | end | 
