We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af23b45 commit a61ac56Copy full SHA for a61ac56
1 file changed
config/initializers/devise.rb
@@ -3,7 +3,7 @@
3
# rubocop:disable Metrics/BlockLength
4
Devise.setup do |config|
5
# general configurations
6
- config.secret_key = Rails.application.credentials.secret_key
+ config.secret_key = ENV["DEVISE_SECRET_KEY"]
7
config.mailer_sender = 'do-not-reply@dcc.ac.uk'
8
require 'devise/orm/active_record'
9
@@ -17,7 +17,7 @@
17
18
# password settings
19
config.stretches = Rails.env.test? ? 1 : 10
20
- config.pepper = Rails.application.credentials.devise_pepper
+ config.pepper = ENV["DEVISE_PASSWORD_PEPPER"]
21
config.password_length = 8..128
22
23
# email reconfirmation
0 commit comments