about summary refs log tree commit diff stats
path: root/test/dummy
diff options
context:
space:
mode:
Diffstat (limited to 'test/dummy')
-rw-r--r--test/dummy/app/controllers/application_controller.rb6
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 @@
1class ApplicationController < ActionController::Base 1class 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
3end 9end