Created
July 15, 2016 14:54
-
-
Save etagwerker/0b9f6c477812817725741da212f571a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Devise.setup do |config| | |
config.mailer_sender = ENV['EMAIL_FROM'] | |
require 'devise/orm/active_record' | |
config.case_insensitive_keys = [:email] | |
config.strip_whitespace_keys = [:email] | |
config.skip_session_storage = [:http_auth] | |
config.stretches = Rails.env.test? ? 1 : 11 | |
config.pepper = ENV['PASSWORD_PEPPER'] | |
config.reconfirmable = false | |
config.expire_all_remember_me_on_sign_out = true | |
config.password_length = 6..128 | |
config.email_regexp = /\A[^@\s]+@[^@\s]+\z/ | |
config.reset_password_within = 6.hours | |
config.sign_out_via = :delete | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment