Permalink
Browse files

more user validation

  • Loading branch information...
1 parent 042be5b commit 4ac61e61c658a53d715105271bf19b24c37b4ecc @jystewart committed Aug 5, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 wp_ar.rb
View
@@ -116,7 +116,8 @@ class WpUser < ActiveRecord::Wordpress
before_validation_on_create :store_registration_time
validates_presence_of :user_registered
-
+ validates_uniqueness_of :user_email, :user_login
+
def store_registration_time
self.user_registered ||= DateTime.now
end

0 comments on commit 4ac61e6

Please sign in to comment.