Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

allow customized password length validation #2860

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

sbounmy commented Feb 11, 2014

Allow to use dynamic settings in Devise.setup, this is useful for multitenant app, example :
in initializers/devise.rb

 Devise.setup do |config|
  config.password_length  = Proc.new { Domain.current.try(:password_regex) }
 end
Owner

josevalim commented Feb 11, 2014

Thanks but if you need custom validation rules, we recommend you to define your own validations (and simply drop validatable).

@josevalim josevalim closed this Feb 11, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment