mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 12:00:12 +08:00
FIX: Digest::Digest deprecation
This commit is contained in:
@ -15,7 +15,7 @@ class Pbkdf2
|
||||
|
||||
def self.hash_password(password, salt, iterations, algorithm = "sha256")
|
||||
|
||||
h = OpenSSL::Digest::Digest.new(algorithm)
|
||||
h = OpenSSL::Digest.new(algorithm)
|
||||
|
||||
u = ret = prf(h, password, salt + [1].pack("N"))
|
||||
|
||||
|
Reference in New Issue
Block a user