Switch web site to use OAuth 2

This commit is contained in:
Tom Hughes 2021-06-27 18:42:47 +01:00
parent 90360df6d7
commit b4a1e41968
7 changed files with 20 additions and 42 deletions

View file

@ -67,7 +67,7 @@ class ApplicationController < ActionController::Base
end
def require_oauth
@oauth_token = current_user.access_token(Settings.oauth_key) if current_user && Settings.key?(:oauth_key)
@oauth_token = current_user.oauth_token(Settings.oauth_application) if current_user && Settings.key?(:oauth_application)
end
##