2020-12-15 14:24:14 +01:00
|
|
|
<h1>Log in</h1>
|
|
|
|
|
2020-12-15 15:45:43 +01:00
|
|
|
<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>
|
|
|
|
|
2020-12-15 14:24:14 +01:00
|
|
|
<%= 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 %>
|
|
|
|
|
2020-12-15 15:45:43 +01:00
|
|
|
<%= email_input f, :email, required: true, placeholder: "Email" %> <br />
|
|
|
|
<%= password_input f, :password, required: true, placeholder: "Password" %> <br />
|
2020-12-15 14:24:14 +01:00
|
|
|
<%= label f, :remember_me, "Keep me logged in for 60 days" %>
|
|
|
|
<%= checkbox f, :remember_me %>
|
|
|
|
|
2020-12-15 15:45:43 +01:00
|
|
|
<br />
|
|
|
|
|
2020-12-15 14:24:14 +01:00
|
|
|
<div>
|
|
|
|
<%= submit "Log in" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= link "Forgot your password?", to: Routes.user_reset_password_path(@conn, :new) %>
|
|
|
|
</p>
|