X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/effb1b7f4170bb7244c4dfffcbe6134fe00e2bc4..728425858d0ecce655dc28ec5a2d1cbbc3a06454:/app/models/oauth2_verifier.rb?ds=sidebyside diff --git a/app/models/oauth2_verifier.rb b/app/models/oauth2_verifier.rb index 3eca1038c..1613eabeb 100644 --- a/app/models/oauth2_verifier.rb +++ b/app/models/oauth2_verifier.rb @@ -67,6 +67,6 @@ class Oauth2Verifier < OauthToken def generate_keys self.token = OAuth::Helper.generate_key(20)[0, 20] self.expires_at = 10.minutes.from_now - self.authorized_at = Time.now + self.authorized_at = Time.now.utc end end