My space on the web https://inhji.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

37 lines
867 B

<div class="hero">
<h1>Log in</h1>
</div>
<%= 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 %>
<fieldset>
<%= label f, :email %>
<%= email_input f, :email, required: true %>
</fieldset>
<fieldset>
<%= label f, :password %>
<%= password_input f, :password, required: true %>
</fieldset>
<fieldset>
<%= label f, :remember_me do %>
<%= checkbox f, :remember_me %>
<span>Keep me logged in for 60 days</span>
<% end %>
</fieldset>
<div>
<%= submit "Log in" %>
</div>
<% end %>
<p>
<%= link "Register", to: Routes.user_registration_path(@conn, :new) %> |
<%= link "Forgot your password?", to: Routes.user_reset_password_path(@conn, :new) %>
</p>