defmodule AprsmeWeb.UserLoginLive do @moduledoc false use AprsmeWeb, :live_view alias Aprsme.Accounts alias Aprsme.Accounts.User def render(assigns) do ~H"""
Don't have an account? <.link navigate={~p"/users/register"} class="font-semibold text-brand hover:underline"> Sign up for an account now.
<.simple_form :let={f} id="login_form" for={@changeset} action={~p"/users/log_in"} as={:user} phx-update="ignore" > <.input field={{f, :email}} type="email" label="Email" required /> <.input field={{f, :password}} type="password" label="Password" required /> <:actions :let={f}> <.input field={{f, :remember_me}} type="checkbox" label="Keep me logged in" /> <.link href={~p"/users/reset_password"} class="text-sm font-semibold"> Forgot your password? <:actions> <.button phx-disable-with="Signing in..." class="w-full"> Sign in