Compare commits

...

2 commits

Author SHA1 Message Date
812700248e Update Devise paths to be at /users instead of /auth_users
Been bothering me for a bit, and now I'm about to submit my official
redirect URL to the Neopets eng team so, let's polish this up!
2024-03-14 20:34:05 -07:00
f4133f8283 Add some cheesy formatting to the placeholder NeoPass UI
Just to make it fun and cute! I'm doing some other stuff for demo video
purposes, but this is the only one I'm committing :p
2024-03-14 19:47:19 -07:00
5 changed files with 9 additions and 4 deletions

View file

@ -1,10 +1,15 @@
<h2>Log in</h2>
<% if @can_use_neopass %>
🌟✨🌟✨🌟✨🌟✨🌟
<br />
<%= button_to "Log in with NeoPass",
auth_user_neopass_omniauth_authorize_path,
data: {turbo: false} # Turbo can't handle this redirect!
%>
🌟✨🌟✨🌟✨🌟✨🌟
<br />
<br />
<% end %>
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>

View file

@ -125,5 +125,5 @@ Rails.application.configure do
# Set the NeoPass redirect callback URL.
config.neopass_redirect_uri =
"http://localhost:3000/auth_users/auth/neopass/callback"
"http://localhost:3000/users/auth/neopass/callback"
end

View file

@ -144,5 +144,5 @@ Rails.application.configure do
# Set the NeoPass redirect callback URL.
config.neopass_redirect_uri =
"https://impress.openneo.net/auth_users/auth/neopass/callback"
"https://impress.openneo.net/users/auth/neopass/callback"
end

View file

@ -80,5 +80,5 @@ Rails.application.configure do
# Set the NeoPass redirect callback URL.
config.neopass_redirect_uri =
"http://localhost:3000/auth_users/auth/neopass/callback"
"http://localhost:3000/users/auth/neopass/callback"
end

View file

@ -2,7 +2,7 @@ OpenneoImpressItems::Application.routes.draw do
root :to => 'outfits#new'
# Login and account management!
devise_for :auth_users
devise_for :auth_users, path: "users"
# The outfit editor!
# TODO: It's a bit silly that outfits/new points to outfits#edit.