#3928 Added constants to define password min length & complexity

This commit is contained in:
maatinito 2019-06-19 12:28:32 -10:00 committed by Pierre de La Morinerie
parent 81c2aa365b
commit 3703a71ea3
2 changed files with 12 additions and 2 deletions

View file

@ -1,4 +1,5 @@
require_relative "contacts"
require_relative 'contacts'
require_relative 'passwords'
# Use this hook to configure devise mailer, warden hooks and so forth.
# Many of these configuration options can be set straight in your model.
@ -142,7 +143,7 @@ Devise.setup do |config|
# ==> Configuration for :validatable
# Range for password length.
config.password_length = 8..128
config.password_length = PASSWORD_MIN_LENGTH..128
# Email regex used to validate email formats. It simply asserts that
# one (and only one) @ exists in the given string. This is mainly