]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/user.rb
Revert to using released version of canonical-rails
[rails.git] / test / factories / user.rb
index 7823c0e9f6ca2e9345944d6a619756d1e68f3284..7f1f14e9c6a9a0c90baf6a07bb6174e5914fcafe 100644 (file)
@@ -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.