X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..d28ae2ad0ab336a5c1f1b7152945b30a4e2cfd02:/app/models/oauth2_verifier.rb diff --git a/app/models/oauth2_verifier.rb b/app/models/oauth2_verifier.rb index 4dcce5588..a404d0c7a 100644 --- a/app/models/oauth2_verifier.rb +++ b/app/models/oauth2_verifier.rb @@ -1,5 +1,6 @@ class Oauth2Verifier < OauthToken - validates_presence_of :user + validates :user, :presence => true, :associated => true + attr_accessor :state def exchange!(_params = {})