<% 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?

When you click the button above, we'll connect with <%= link_to "https://account.neopets.com/", target: "_blank" do %> your currently logged-in NeoPass <%= external_link_icon %><% end %>. If this is your first time here, 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! You'll never be asked for these permissions again.

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

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