From 4a423e327512ef0bb712ff546fca708e23ba6a1d Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Thu, 7 Mar 2024 16:25:35 +1100 Subject: [PATCH] Set known default password for sample users This enables us to easily log in as one of the sample users to test functionality as enterprise user or customer instead of admin. --- lib/tasks/sample_data/user_factory.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/sample_data/user_factory.rb b/lib/tasks/sample_data/user_factory.rb index 445c3fd402..bb5268e2b3 100644 --- a/lib/tasks/sample_data/user_factory.rb +++ b/lib/tasks/sample_data/user_factory.rb @@ -30,7 +30,7 @@ module SampleData def create_user(name) email = "#{name.downcase.tr(' ', '.')}@example.org" - password = Spree::User.friendly_token + password = "ofn123" log "- #{email}" user = Spree::User.create_with( password:,