Skip to content

Commit

Permalink
Fix: blueprints' passwords (again)
Browse files Browse the repository at this point in the history
We don't have `SecureRandom#alphanumeric` yet, so we use base64 with an
odd number of characters to force at least a symbol (the trailing `=`).

See f26e600
  • Loading branch information
matiasgarciaisaia committed Jan 19, 2024
1 parent f26e600 commit 1700501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/support/blueprints.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

User.blueprint do
email { Faker::Internet.email }
password { SecureRandom.alphanumeric(10) }
password { SecureRandom.base64(17) }
confirmed_at { 2.days.ago }
end

ExtraPassword.blueprint do
password { SecureRandom.alphanumeric(10) }
password { SecureRandom.base64(17) }
end

AuthorizationCode.blueprint do
Expand Down

0 comments on commit 1700501

Please sign in to comment.