Skip to content

Commit 8f92915

Browse files
committed
Allow minimal password length of 5 characters
1 parent 1798aad commit 8f92915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/user.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def ordergroup
3333
validates_presence_of :first_name # for simple_form validations
3434
validates_length_of :first_name, :in => 2..50
3535
validates_confirmation_of :password
36-
validates_length_of :password, :in => 12..50, :allow_blank => true
36+
validates_length_of :password, :in => 5..50, :allow_blank => true
3737
# allow nick to be nil depending on foodcoop config
3838
# TODO Rails 4 may have a more beautiful way
3939
# http://stackoverflow.com/questions/19845910/conditional-allow-nil-part-of-validation

0 commit comments

Comments
 (0)