Current section

Files

Jump to
pow lib pow phoenix templates session_template.ex
Raw

lib/pow/phoenix/templates/session_template.ex

defmodule Pow.Phoenix.SessionTemplate do
@moduledoc false
use Pow.Phoenix.Template
template :new, :html,
"""
<h1>Sign in</h1>
<%= Pow.Phoenix.HTML.FormTemplate.render([
{:text, {:changeset, :pow_user_id_field}},
{:password, :password}
],
button_label: "Sign in") %>
<span><%%= link "Register", to: Routes.<%= Pow.Phoenix.Controller.route_helper(Pow.Phoenix.RegistrationController) %>_path(@conn, :new) %></span>
"""
end