mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-11 03:40:20 +00:00
Merge pull request #2288 from frank-west-iii/issue-2182-confirm-first-user
Confirm first user when seeding database
This commit is contained in:
@@ -50,3 +50,6 @@ def create_mail_method
|
||||
end
|
||||
|
||||
create_mail_method
|
||||
|
||||
spree_user = Spree::User.first
|
||||
spree_user && spree_user.confirm!
|
||||
|
||||
@@ -9,7 +9,6 @@ namespace :openfoodnetwork do
|
||||
require_relative '../../spec/support/spree/init'
|
||||
task_name = "openfoodnetwork:dev:load_sample_data"
|
||||
|
||||
spree_user = Spree::User.find_by_email('spree@example.com')
|
||||
country = Spree::Country.find_by_iso(ENV.fetch('DEFAULT_COUNTRY_CODE'))
|
||||
state = country.states.first
|
||||
|
||||
@@ -202,8 +201,6 @@ namespace :openfoodnetwork do
|
||||
CreateOrderCycle.new(enterprise2, variants).call
|
||||
|
||||
EnterpriseRole.create!(user: Spree::User.first, enterprise: enterprise2)
|
||||
|
||||
spree_user.confirm!
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user