mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
stupidity 2: episode 1
This commit is contained in:
parent
f4b7cc5f5f
commit
3090bf7adc
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue