]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/access_token.rb
Reduce the effect of the user description on the spam score
[rails.git] / app / models / access_token.rb
index 1f172c5f009b547e51f71388f02356f21603197c..a1888343a0ea387fc308638954de9d0be3e18c35 100644 (file)
@@ -4,7 +4,7 @@ class AccessToken < OauthToken
 
   scope :valid, where(:invalidated_at => nil)
 
-  validates_presence_of :user
+  validates_presence_of :user, :secret
 
   before_create :set_authorized_at