مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2026-01-17 21:39:47 +00:00
refactor: switch to use SecureRandom for random strings
هذا الالتزام موجود في:
@@ -164,7 +164,7 @@ class Domain < ApplicationRecord
|
||||
return unless verification_method_changed?
|
||||
|
||||
if verification_method == "DNS"
|
||||
self.verification_token = Nifty::Utils::RandomString.generate(length: 32)
|
||||
self.verification_token = SecureRandom.alphanumeric(32)
|
||||
elsif verification_method == "Email"
|
||||
self.verification_token = rand(999_999).to_s.ljust(6, "0")
|
||||
else
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم