Skip to content

Commit

Permalink
Allow minimal password length of 5 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
paroga committed Feb 18, 2022
1 parent 023ab07 commit f5ce79b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def ordergroup
validates_presence_of :first_name # for simple_form validations
validates_length_of :first_name, :in => 2..50
validates_confirmation_of :password
validates_length_of :password, :in => 12..50, :allow_blank => true
validates_length_of :password, :in => 5..50, :allow_blank => true
# allow nick to be nil depending on foodcoop config
# TODO Rails 4 may have a more beautiful way
# http://stackoverflow.com/questions/19845910/conditional-allow-nil-part-of-validation
Expand Down

0 comments on commit f5ce79b

Please sign in to comment.