]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2433 Allow 2-letter-usernames
authorSimon Brandhof <simon.brandhof@gmail.com>
Wed, 1 Jun 2011 13:54:09 +0000 (15:54 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 1 Jun 2011 14:40:30 +0000 (16:40 +0200)
sonar-server/src/main/webapp/WEB-INF/app/models/user.rb

index 69bf41d343fac3f7ad8386943573bf7bf2bc8ac7..f7477586cff90508804a4d6a66994cdbd3f5cc03 100644 (file)
@@ -45,7 +45,7 @@ class User < ActiveRecord::Base
   validates_confirmation_of :password, :if => :password_required?
 
   validates_presence_of     :login
-  validates_length_of       :login,    :within => 3..40
+  validates_length_of       :login,    :within => 2..40
   validates_uniqueness_of   :login, :case_sensitive => true
   validates_format_of       :login,    :with => Authentication.login_regex, :message => Authentication.bad_login_message