diff options
| author | hukl <contact@smyck.org> | 2009-02-21 17:36:29 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-02-21 17:36:29 +0100 |
| commit | ea36234c990336cfa4a3ee1b6b80d5c9863c0676 (patch) | |
| tree | 17b12ffe2b7827907f66c56b7a7e40c0179b2192 /app/models/user.rb | |
| parent | 41448123069858d754931d136d90ea2665d8a8be (diff) | |
changed minimum :login length
Diffstat (limited to 'app/models/user.rb')
| -rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 365fa8a..26ebf45 100644 --- a/app/models/user.rb +++ b/app/models/user.rb | |||
| @@ -10,7 +10,7 @@ class User < ActiveRecord::Base | |||
| 10 | 10 | ||
| 11 | # Validations | 11 | # Validations |
| 12 | validates_presence_of :login | 12 | validates_presence_of :login |
| 13 | validates_length_of :login, :within => 3..40 | 13 | validates_length_of :login, :within => 1..40 |
| 14 | validates_uniqueness_of :login | 14 | validates_uniqueness_of :login |
| 15 | validates_format_of :login, :with => Authentication.login_regex, | 15 | validates_format_of :login, :with => Authentication.login_regex, |
| 16 | :message => Authentication.bad_login_message | 16 | :message => Authentication.bad_login_message |
