[#114] User.Info: renamed confirmation_update to confirmation_changeset.
This commit is contained in:
parent
59fc5d15df
commit
968d7490b6
5 changed files with 10 additions and 10 deletions
|
|
@ -376,7 +376,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
|
|||
def confirm_email(conn, %{"token" => token}) do
|
||||
with %User{} = user <- User.get_by_confirmation_token(token),
|
||||
true <- user.local,
|
||||
info_change <- User.Info.confirmation_change(user.info, :confirmed),
|
||||
info_change <- User.Info.confirmation_changeset(user.info, :confirmed),
|
||||
changeset <- Changeset.change(user) |> Changeset.put_embed(:info, info_change),
|
||||
{:ok, _} <- User.update_and_set_cache(changeset) do
|
||||
conn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue