no periods in username
This commit is contained in:
parent
1b7749f282
commit
b3ca504c40
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ class User
|
|||
|
||||
validates_presence_of :username
|
||||
validates_uniqueness_of :username, :case_sensitive => false
|
||||
validates_format_of :username, :with => /\A[A-Za-z0-9_.]+\z/
|
||||
validates_format_of :username, :with => /\A[A-Za-z0-9_]+\z/
|
||||
validates_length_of :username, :maximum => 32
|
||||
validates_inclusion_of :language, :in => AVAILABLE_LANGUAGE_CODES
|
||||
validates_inclusion_of :grammatical_gender, :in => I18n::Backend::Genderize::known_genders + [nil]
|
||||
|
|
|
|||
Loading…
Reference in a new issue