summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-17 20:14:31 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-17 20:14:31 +0000
commit7d143bc3f7394f0af2d95b1e3ce3a6db282516cb (patch)
tree8b399671cceaa2f9e5034cbebfa73d313b0616a1 /app
parent062a2d6f5d6ebdc74d5586cb151fd07a219b1b31 (diff)
downloadredmine-7d143bc3f7394f0af2d95b1e3ce3a6db282516cb.tar.gz
redmine-7d143bc3f7394f0af2d95b1e3ce3a6db282516cb.zip
Allow dot in firstnames and lastnames (closes #1426).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1561 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 573261b77..5568027d5 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -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