mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix seeding of default user without asking
This commit is contained in:
@@ -35,8 +35,8 @@ end
|
||||
|
||||
def create_admin_user
|
||||
if ENV.fetch("AUTO_ACCEPT", true)
|
||||
password = 'spree123'
|
||||
email = 'spree@example.com'
|
||||
password = ENV.fetch("ADMIN_PASSWORD", "spree123")
|
||||
email = ENV.fetch("ADMIN_EMAIL", "spree@example.com")
|
||||
else
|
||||
puts 'Create the admin user (press enter for defaults).'
|
||||
#name = prompt_for_admin_name unless name
|
||||
|
||||
Reference in New Issue
Block a user