diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 13:07:58 -0500 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-12-07 13:07:58 -0500 |
| commit | eb41f85dd46b4d224aa3f3bc2c05d577ac50625f (patch) | |
| tree | 4b4ec2158bfbcbddf3b2f0095604888eca18005c /app | |
| parent | 9681897e9ace534c4559fa9be20aa86af1a42e13 (diff) | |
| download | thoughts-eb41f85dd46b4d224aa3f3bc2c05d577ac50625f.tar.gz thoughts-eb41f85dd46b4d224aa3f3bc2c05d577ac50625f.tar.bz2 thoughts-eb41f85dd46b4d224aa3f3bc2c05d577ac50625f.zip | |
Unmount Pokeviewer engine
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/application_controller.rb | 10 |
1 files changed, 0 insertions, 10 deletions
| diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index c9d4e15..0174cae 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb | |||
| @@ -1,16 +1,6 @@ | |||
| 1 | class ApplicationController < ActionController::Base | 1 | class ApplicationController < ActionController::Base |
| 2 | protect_from_forgery with: :exception | 2 | protect_from_forgery with: :exception |
| 3 | 3 | ||
| 4 | protected | ||
| 5 | |||
| 6 | def authenticate_pokeviewer(login, token) | ||
| 7 | user = login && User.find_by_login(login) | ||
| 8 | |||
| 9 | ActiveSupport::SecurityUtils.secure_compare( | ||
| 10 | ::Digest::SHA256.hexdigest(user.pokeviewer_token), | ||
| 11 | ::Digest::SHA256.hexdigest(token)) | ||
| 12 | end | ||
| 13 | |||
| 14 | private | 4 | private |
| 15 | 5 | ||
| 16 | def after_sign_out_path_for(resource) | 6 | def after_sign_out_path_for(resource) |
