Hide the most sensitive user data from logs

Else admins may accidentally leak password (hashes)
or expose their users emails when sharing logs for debugging
This commit is contained in:
Oneric 2025-11-25 00:00:00 +00:00
parent d81b8a9e14
commit 6d241a18da

View file

@ -91,6 +91,9 @@ defmodule Pleroma.User do
@cachex Pleroma.Config.get([:cachex, :provider], Cachex)
# hide sensitive data from logs
@derive {Inspect, except: [:password, :password_hash, :email]}
schema "users" do
field(:bio, :string, default: "")
field(:raw_bio, :string)