<% title "Log into Dress to Impress" %>
<%= form_with(model: resource, url: session_path(resource_name), class: "login-form") do |f| %>
<%= f.label :name, 'DTI Username' %>
<%= f.text_field :name, autofocus: true, autocomplete: "username" %>
<%= f.label :password, "DTI Password" %>
<%= f.password_field :password, autocomplete: "current-password" %>
<%= f.submit "Log in" %>
<%= f.check_box :remember_me %> <%= f.label :remember_me %>
<% end %>
Have a NeoPass?
<%= button_to auth_user_neopass_omniauth_authorize_path(intent: "login"), data: {turbo: false}, class: "log-in-with-neopass-button" do %> Log in with <%= image_tag "neopass_icon.png", alt: "NeoPass", class: "neopass-icon" %> <% end %>
How does it work?

If this is your first time using NeoPass at Dress to Impress, we'll create a new DTI account for you automatically!

You'll be asked for 3 permissions: OpenID and Email tell us who you are, and Linkage tells us your Neopets username.

After that, you'll be able to one-click log in here, any time!

To connect an existing DTI account, don't start here! Log in with your password first, then check the Settings page.

<% content_for :stylesheets do %> <%= stylesheet_link_tag "devise/sessions/new" %> <% end %>