summaryrefslogtreecommitdiff
path: root/app/views/sessions/new.html.erb
blob: 51029b112b5cdff9c86fea2aa766bb13090f253d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<%= tag.div(flash[:alert], style: "color:red") if flash[:alert] %>
<%= tag.div(flash[:notice], style: "color:green") if flash[:notice] %>

<%= form_with url: session_path do |form| %>
    <%= form.email_field :email_address,
    required: true,
    autofocus: true,
    autocomplete: "username",
    placeholder: "Enter your email address",
    value: params[:email_address] %><br>
    <%= form.password_field :password,
    required: true,
    autocomplete: "current-password",
    placeholder: "Enter your password",
    maxlength: 72 %><br>
    <%= form.submit "Sign in" %>
<% end %>
<br>

<%= link_to "Forgot password?", new_password_path %>
Copyright 2019--2025 Marius PETER