X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..7f05783949ce561d58904da133efd37438ebffe8:/app/models/oauth2_verifier.rb?ds=inline 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 = {})