diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-02-18 11:00:21 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-02-18 11:00:21 +0000 |
commit | f76dcf33effbae0bd2f17c97d9e1f13d3e252f74 (patch) | |
tree | 98cd832b13e4408d9be558aaf25bc0b84ae30d9e /app/models/user.rb | |
parent | 64bbf64fb6f3b9e89f3180df28c5f06f54638eb8 (diff) | |
download | redmine-f76dcf33effbae0bd2f17c97d9e1f13d3e252f74.tar.gz redmine-f76dcf33effbae0bd2f17c97d9e1f13d3e252f74.zip |
fix typo at app/models/user.rb (#5719)
Contributed by Tom Copeland.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11427 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 696a2a203..3670ad2a1 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -92,7 +92,7 @@ class User < Principal validates_presence_of :login, :firstname, :lastname, :mail, :if => Proc.new { |user| !user.is_a?(AnonymousUser) } validates_uniqueness_of :login, :if => Proc.new { |user| user.login_changed? && user.login.present? }, :case_sensitive => false validates_uniqueness_of :mail, :if => Proc.new { |user| user.mail_changed? && user.mail.present? }, :case_sensitive => false - # Login must contain lettres, numbers, underscores only + # Login must contain letters, numbers, underscores only validates_format_of :login, :with => /\A[a-z0-9_\-@\.]*\z/i validates_length_of :login, :maximum => LOGIN_LENGTH_LIMIT validates_length_of :firstname, :lastname, :maximum => 30 @@ -145,7 +145,7 @@ class User < Principal begin write_attribute(:identity_url, OpenIdAuthentication.normalize_identifier(url)) rescue OpenIdAuthentication::InvalidOpenId - # Invlaid url, don't save + # Invalid url, don't save end end self.read_attribute(:identity_url) |