Permalink
Browse files

Validate presence of password

  • Loading branch information...
1 parent 4701f19 commit 847ac88718729bdcfcea709d74fdcff619922f5f @binarylogic binarylogic committed Nov 21, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/models/user.rb
View
@@ -2,6 +2,7 @@ class User < ActiveRecord::Base
acts_as_authentic :allow_blank_login_and_password_fields => true
validates_presence_of :login, :if => Proc.new { |user| user.openid_identifier.blank? }
+ validates_presence_of :password, :if => Proc.new { |user| user.openid_identifier.blank? }
validate :normalize_openid_identifier
validates_uniqueness_of :openid_identifier, :allow_blank => true

0 comments on commit 847ac88

Please sign in to comment.