X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6c2093b29d74b145b85e61c4fff09b5f13afa0e5..5da7215873152fd52a93c3d91bc38c5dbb32ddce:/app/models/request_token.rb diff --git a/app/models/request_token.rb b/app/models/request_token.rb index ed0cc3ae4..adeabb184 100644 --- a/app/models/request_token.rb +++ b/app/models/request_token.rb @@ -42,7 +42,7 @@ class RequestToken < OauthToken return false if authorized? self.user = user - self.authorized_at = Time.now + self.authorized_at = Time.now.utc self.verifier = OAuth::Helper.generate_key(20)[0, 20] unless oauth10? save end @@ -77,6 +77,6 @@ class RequestToken < OauthToken end def oauth10? - (defined? OAUTH_10_SUPPORT) && OAUTH_10_SUPPORT && callback_url.blank? + Settings.key?(:oauth_10_support) && Settings.oauth_10_support && callback_url.blank? end end