Skip to content

Commit 3f7cc79

Browse files
senemsoyjarednorman
andcommitted
Use email regexp configured on Solidus
This is to prevent a situation where an email is valid on the User, but invalid on the Order. This ensures that when an email is being copied from the User when an order is being created, there are no validation errors. Co-authored-by: Jared Norman <jared@super.gd>
1 parent 1a46686 commit 3f7cc79

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

33
Devise.secret_key = SecureRandom.hex(50).inspect
4+
Devise.email_regexp = Spree::Config[:default_email_regexp]

0 commit comments

Comments
 (0)