2023-08-06 15:52:05 -07:00
|
|
|
<h2>Log in</h2>
|
|
|
|
|
2024-03-14 15:34:24 -07:00
|
|
|
<% if @can_use_neopass %>
|
|
|
|
<%= button_to "Log in with NeoPass",
|
2024-03-14 16:13:31 -07:00
|
|
|
auth_user_neopass_omniauth_authorize_path,
|
|
|
|
data: {turbo: false} # Turbo can't handle this redirect!
|
2024-03-14 15:34:24 -07:00
|
|
|
%>
|
|
|
|
<% end %>
|
|
|
|
|
2023-08-06 15:52:05 -07:00
|
|
|
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :name, 'Username' %><br />
|
|
|
|
<%= f.text_field :name, autofocus: true, autocomplete: "username" %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :password %><br />
|
|
|
|
<%= f.password_field :password, autocomplete: "current-password" %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% if devise_mapping.rememberable? %>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.check_box :remember_me %>
|
|
|
|
<%= f.label :remember_me %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="actions">
|
|
|
|
<%= f.submit "Log in" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= render "devise/shared/links" %>
|