Skip to content

Commit ab21201

Browse files
committed
Fix default configuration for Devise.secret_key
This is the default configuration Devise uses. What we had previously sets the `Devise.secret_key` to a random value at application boot that is not known across different instances of the same application.
1 parent 3f7cc79 commit ab21201

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lib/generators/solidus/auth/install/templates/config/initializers
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# frozen_string_literal: true
22

3-
Devise.secret_key = SecureRandom.hex(50).inspect
3+
Devise.secret_key = '<%= SecureRandom.hex(64) %>'
44
Devise.email_regexp = Spree::Config[:default_email_regexp]

0 commit comments

Comments
 (0)