Project

General

Profile

Patch #5719 ยป some_tiny_mispelings.diff

Tom Copeland, 2010-06-21 15:54

View differences:

app/models/user.rb (working copy)
55 55
  validates_presence_of :login, :firstname, :lastname, :mail, :if => Proc.new { |user| !user.is_a?(AnonymousUser) }
56 56
  validates_uniqueness_of :login, :if => Proc.new { |user| !user.login.blank? }, :case_sensitive => false
57 57
  validates_uniqueness_of :mail, :if => Proc.new { |user| !user.mail.blank? }, :case_sensitive => false
58
  # Login must contain lettres, numbers, underscores only
58
  # Login must contain letters, numbers, underscores only
59 59
  validates_format_of :login, :with => /^[a-z0-9_\-@\.]*$/i
60 60
  validates_length_of :login, :maximum => 30
61 61
  validates_format_of :firstname, :lastname, :with => /^[\w\s\'\-\.]*$/i
......
86 86
      begin
87 87
        write_attribute(:identity_url, OpenIdAuthentication.normalize_identifier(url))
88 88
      rescue OpenIdAuthentication::InvalidOpenId
89
        # Invlaid url, don't save
89
        # Invalid url, don't save
90 90
      end
91 91
    end
92 92
    self.read_attribute(:identity_url)
    (1-1/1)