X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/15b104f4ff4614aa78c01180b6a9b89dd5a1400f..6163b01f146d97201e0c2d9efff83dd5dbadebf7:/app/models/oauth2_verifier.rb 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