2023-08-06 15:52:05 -07:00
|
|
|
<h2>Log in</h2>
|
|
|
|
|
2024-04-08 05:34:47 -07:00
|
|
|
<% if can_use_neopass %>
|
2024-04-11 08:46:35 -07:00
|
|
|
<%= button_to auth_user_neopass_omniauth_authorize_path(intent: "login"),
|
|
|
|
data: {turbo: false}, class: "log-in-with-neopass-button" do
|
2024-03-14 15:34:24 -07:00
|
|
|
%>
|
2024-04-11 08:46:35 -07:00
|
|
|
Log in with
|
|
|
|
<%= image_tag "neopass_icon.png", alt: "NeoPass", class: "neopass-icon" %>
|
|
|
|
<% end %>
|
2024-03-14 15:34:24 -07:00
|
|
|
<% end %>
|
|
|
|
|
2024-04-11 08:54:42 -07:00
|
|
|
<%= form_with(model: resource, url: session_path(resource_name),
|
|
|
|
class: "login-form") do |f| %>
|
|
|
|
<div class="field input-field">
|
2023-08-06 15:52:05 -07:00
|
|
|
<%= f.label :name, 'Username' %><br />
|
|
|
|
<%= f.text_field :name, autofocus: true, autocomplete: "username" %>
|
|
|
|
</div>
|
|
|
|
|
2024-04-11 08:54:42 -07:00
|
|
|
<div class="field input-field">
|
2023-08-06 15:52:05 -07:00
|
|
|
<%= f.label :password %><br />
|
|
|
|
<%= f.password_field :password, autocomplete: "current-password" %>
|
|
|
|
</div>
|
|
|
|
|
2024-04-11 08:54:42 -07:00
|
|
|
<div class="field checkbox-field">
|
|
|
|
<%= f.check_box :remember_me %>
|
|
|
|
<%= f.label :remember_me %>
|
|
|
|
</div>
|
2023-08-06 15:52:05 -07:00
|
|
|
|
|
|
|
<div class="actions">
|
|
|
|
<%= f.submit "Log in" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2024-04-11 08:54:42 -07:00
|
|
|
<div class="login-links">
|
|
|
|
<%= link_to "Sign up", new_auth_user_path %>
|
|
|
|
<%= link_to "Forgot your password?", new_auth_user_password_path %>
|
|
|
|
</div>
|
2024-04-11 08:46:35 -07:00
|
|
|
|
|
|
|
<% content_for :stylesheets do %>
|
|
|
|
<%= stylesheet_link_tag "devise/sessions/new" %>
|
|
|
|
<% end %>
|