Don't log the user password

This commit is contained in:
Shadowfacts 2020-08-02 18:38:13 -04:00
parent 35f71aa09f
commit b99ab34182
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 0 additions and 3 deletions

View File

@ -352,10 +352,7 @@ defmodule Wiki.Accounts do
def generate_content_encryption_key(%User{content_encryption_key_salt: salt}, %{
"password" => password
}) do
IO.puts("password: #{inspect(password)}")
Argon2.Base.hash_password(password, salt, format: :raw_hash, hashlen: 32)
|> IO.inspect()
end
def generate_content_encryption_key(_user, _params) do