meta/lib/recycledcloud_web/templates/user_session/new.html.eex

28 lines
834 B
Elixir

<h1>Log in</h1>
<p>Please use your LDAP credentials to log in. You may
<%= link "register a new account", to: Routes.user_registration_path(@conn, :new) %>
if you do not already have one.</p>
<%= form_for @conn, Routes.user_session_path(@conn, :create), [as: :user], fn f -> %>
<%= if @error_message do %>
<div class="alert alert-danger">
<p><%= @error_message %></p>
</div>
<% end %>
<%= text_input f, :username, required: true, placeholder: "Username" %> <br />
<%= password_input f, :password, required: true, placeholder: "Password" %> <br />
<%= label f, :remember_me, "Keep me logged in for 60 days" %>
<%= checkbox f, :remember_me %>
<br />
<div>
<%= submit "Log in" %>
</div>
<% end %>
<p>
<%= link "Forgot your password?", to: Routes.user_reset_password_path(@conn, :new) %>
</p>