]> source.dussan.org Git - redmine.git/commitdiff
Merged r1561 from trunk.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 6 Jul 2008 10:58:31 +0000 (10:58 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 6 Jul 2008 10:58:31 +0000 (10:58 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/branches/0.7-stable@1629 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/user.rb

index 573261b77b3793d466a014619664ad36aae8ab36..5568027d577791a28bb8c03e4a13a3461e813c32 100644 (file)
@@ -54,7 +54,7 @@ class User < ActiveRecord::Base
   # Login must contain lettres, numbers, underscores only
   validates_format_of :login, :with => /^[a-z0-9_\-@\.]*$/i
   validates_length_of :login, :maximum => 30
-  validates_format_of :firstname, :lastname, :with => /^[\w\s\'\-]*$/i
+  validates_format_of :firstname, :lastname, :with => /^[\w\s\'\-\.]*$/i
   validates_length_of :firstname, :lastname, :maximum => 30
   validates_format_of :mail, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i, :allow_nil => true
   validates_length_of :mail, :maximum => 60, :allow_nil => true