]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
This is the initial implementation of login via OpenID
[rails.git] / app / models / user.rb
index 54b3fa371c4acc3674a0a303dea79d93a9ffa02b..eb69dc03148107bc4bd8092382db1b5634957135 100644 (file)
@@ -22,6 +22,7 @@ class User < ActiveRecord::Base
   validates_confirmation_of :pass_crypt#, :message => ' must match the confirmation password'
   validates_uniqueness_of :display_name, :allow_nil => true
   validates_uniqueness_of :email
+  validates_uniqueness_of :openid_url, :allow_nil => true
   validates_length_of :pass_crypt, :within => 8..255
   validates_length_of :display_name, :within => 3..255, :allow_nil => true
   validates_length_of :email, :within => 6..255