[#114] Email confirmation route, action, node setting, User.Info fields.
This commit is contained in:
parent
b6ae412fcd
commit
a05cb10a95
5 changed files with 25 additions and 0 deletions
|
|
@ -9,6 +9,8 @@ defmodule Pleroma.User.Info do
|
|||
field(:note_count, :integer, default: 0)
|
||||
field(:follower_count, :integer, default: 0)
|
||||
field(:locked, :boolean, default: false)
|
||||
field(:confirmation_pending, :boolean, default: false)
|
||||
field(:confirmation_token, :string, default: nil)
|
||||
field(:default_scope, :string, default: "public")
|
||||
field(:blocks, {:array, :string}, default: [])
|
||||
field(:domain_blocks, {:array, :string}, default: [])
|
||||
|
|
@ -141,6 +143,10 @@ defmodule Pleroma.User.Info do
|
|||
])
|
||||
end
|
||||
|
||||
def confirmation_update(info, params) do
|
||||
cast(info, params, [:confirmation_pending, :confirmation_token])
|
||||
end
|
||||
|
||||
def mastodon_profile_update(info, params) do
|
||||
info
|
||||
|> cast(params, [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue