docs: Mark the hashed_password field as private so it does not appear in any API responses

As the API extensions grab all public attributes by default - this is one that really should not be included!
This commit is contained in:
Rebecca Le 2024-02-26 09:52:21 +08:00 committed by GitHub
parent f2d1da39a4
commit 02a01512cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -174,7 +174,7 @@ defmodule MyApp.Accounts.User do
attributes do
uuid_primary_key :id
attribute :email, :ci_string, allow_nil?: false
attribute :hashed_password, :string, allow_nil?: false, sensitive?: true
attribute :hashed_password, :string, allow_nil?: false, sensitive?: true, private?: true
end
authentication do