Log in
<% if @can_use_neopass %>
<%= button_to "Log in with NeoPass",
auth_user_neopass_omniauth_authorize_path,
data: {turbo: false} # Turbo can't handle this redirect!
%>
<% end %>
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
<%= f.label :name, 'Username' %>
<%= f.text_field :name, autofocus: true, autocomplete: "username" %>
<%= f.label :password %>
<%= f.password_field :password, autocomplete: "current-password" %>
<% if devise_mapping.rememberable? %>
<%= f.check_box :remember_me %>
<%= f.label :remember_me %>
<% end %>
<%= f.submit "Log in" %>
<% end %>
<%= render "devise/shared/links" %>