Skip to content

Commit

Permalink
replace deprecated live_flash for Phoenix.Flash.get in phx.gen.auth (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
guissalustiano committed Apr 5, 2024
1 parent 2c5da88 commit cdc16ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion priv/templates/phx.gen.auth/login_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
end

def mount(_params, _session, socket) do
email = live_flash(socket.assigns.flash, :email)
email = Phoenix.Flash.get(socket.assigns.flash, :email)
form = to_form(%{"email" => email}, as: "<%= schema.singular %>")
{:ok, assign(socket, form: form), temporary_assigns: [form: form]}
end
Expand Down

0 comments on commit cdc16ab

Please sign in to comment.