Don't log the user password
This commit is contained in:
parent
35f71aa09f
commit
b99ab34182
|
@ -352,10 +352,7 @@ defmodule Wiki.Accounts do
|
||||||
def generate_content_encryption_key(%User{content_encryption_key_salt: salt}, %{
|
def generate_content_encryption_key(%User{content_encryption_key_salt: salt}, %{
|
||||||
"password" => password
|
"password" => password
|
||||||
}) do
|
}) do
|
||||||
IO.puts("password: #{inspect(password)}")
|
|
||||||
|
|
||||||
Argon2.Base.hash_password(password, salt, format: :raw_hash, hashlen: 32)
|
Argon2.Base.hash_password(password, salt, format: :raw_hash, hashlen: 32)
|
||||||
|> IO.inspect()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def generate_content_encryption_key(_user, _params) do
|
def generate_content_encryption_key(_user, _params) do
|
||||||
|
|
Loading…
Reference in New Issue