RailsApps / rails-stripe-membership-saas

An example Rails 4.2 app with Stripe and the Payola gem for a membership or subscription site.

Home Page:http://railsapps.github.io/rails-stripe-membership-saas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

seed.rb password length conflicts with devise initializer minimum length

opened this issue · comments

When creating the app from composer, the seeded users fail to be created due to the devise configuration requiring a minimum of 8 characters. I expected some type of error to occur when seeding since the user create fails.

Hey Lucky,
I'm not exactly sure what your error is. The default devise config allows 6 character passwords. This can be changed by going to your devise.rb file and uncommenting and changing this line.

          config.password_length = 6..128

If for some reason this isn't at 6 for you can just change it back.

Devise changed the default minimum password length with the recent release of Devise 2.2.0. I've recently updated the Rails Composer tool to set up the seeds.rb file with an eight letter password ("changeme") and I've worked through each example application to update the tests, README, and tutorials.