X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4cac6b035410619a4b6bece8be6f224fb06b3c87..84ff3ed43acb29f332b2811b887007981a055e35:/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.