Skip to content

Customize minimum password length

alexsoble edited this page Oct 1, 2014 · 1 revision

Two different ways to do this:

1. Global config for your app:

In config/initializers/devise.rb:

config.password_length = 10..128

2. On a per-model basis:

In user.rb, for example:

devise :database_authenticatable, :validatable, password_length: 10..128

Clone this wiki locally