config/initializers/devise.rb in phcdevworks_accounts-1.2.0 vs config/initializers/devise.rb in phcdevworks_accounts-1.3.0
- old
+ new
@@ -8,11 +8,11 @@
# random tokens. Changing this key will render invalid all existing
# confirmation, reset password and unlock tokens in the database.
# Devise will use the `secret_key_base` as its `secret_key`
# by default. You can change it below and use your own secret key.
config.secret_key = ENV['SECRET_KEY_BASE'] if Rails.env.production?
- config.secret_key = 'fc3c064ce2237384104a538c191a374e75e7b9f3a7e1e531e0e07a43a6e3693ea4834a40b9618e707c6981588c79fc69b42dc2c4b8b835c23a1564d0e1fa7410' if Rails.env.development?
+ # config.secret_key = 'c820cfaf52fdef30f175df6613d15419b36c28179b3853c7a2814f1e804286c6b82a7b88677aa958ac56937a8c9331575fee09fa25ac4295d007cc5c7cfa5117'
# ==> Controller configuration
# Configure the parent class to the devise controllers.
config.parent_controller = 'PhcdevworksAccounts::ApplicationController'
@@ -114,11 +114,11 @@
# algorithm), the cost increases exponentially with the number of stretches (e.g.
# a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation).
config.stretches = Rails.env.test? ? 1 : 11
# Set up a pepper to generate the hashed password.
- # config.pepper = '17a8fed3dc8f20a7128531632f608dba45e7b136429eba57e85a04576cd28382121417c42fc4c5fa31dc67513d410e0e83c749e474ab4fba46779b665fa0b1bb'
+ # config.pepper = '8cb8115e84ce11219f028bd27b1a98ab5802a37cd0ab7e54b92ba74e64370b4a415602cc933e7215128faa952c4a7c5ff813d9ff83a3f8bea5d01c23c1f70f64'
# Send a notification to the original email when the user's email is changed.
# config.send_email_changed_notification = false
# Send a notification email when the user's password is changed.
@@ -166,10 +166,10 @@
# secure: true in order to force SSL only cookies.
# config.rememberable_options = {}
# ==> Configuration for :validatable
# Range for password length.
- config.password_length = 6..32
+ config.password_length = 6..128
# Email regex used to validate email formats. It simply asserts that
# one (and only one) @ exists in the given string. This is mainly
# to give user feedback and not to assert the e-mail validity.
config.email_regexp = /\A[^@\s]+@[^@\s]+\z/