X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4cac6b035410619a4b6bece8be6f224fb06b3c87..243557a31aec5012796821fda6f2702a5e1efdae:/test/factories/user.rb diff --git a/test/factories/user.rb b/test/factories/user.rb index 7823c0e9f..7f1f14e9c 100644 --- a/test/factories/user.rb +++ b/test/factories/user.rb @@ -1,8 +1,10 @@ +pass_crypt = PasswordHash.create("test").first + FactoryBot.define do factory :user do sequence(:email) { |n| "user#{n}@example.com" } sequence(:display_name) { |n| "User #{n}" } - pass_crypt { "$argon2id$v=19$m=65536,t=3,p=4$M+oP6KQOdFLDeiYa/gbzAg$pULNwXgKt2sEmTxMXxt298skEqc8MjnPwGsk075jLrk" } + pass_crypt { pass_crypt } # These attributes are not the defaults, but in most tests we want # a 'normal' user who can log in without being redirected etc.