stupidity 2: episode 1

This commit is contained in:
Luna D 2020-10-21 20:44:20 +02:00
parent f4b7cc5f5f
commit 3090bf7adc
No known key found for this signature in database
GPG key ID: 81AF416F2CC36FC8

View file

@ -14,7 +14,7 @@ defmodule PhilomenaWeb.Registration.NameController do
def update(conn, %{"user" => user_params}) do
case Users.update_name(conn.assigns.current_user, user_params) do
{:ok, %{account: user}} ->
{:ok, user} ->
conn
|> put_flash(:info, "Name successfully updated.")
|> redirect(to: Routes.profile_path(conn, :show, user))