From 812700248e0170bb0c3d1e00f60185760ce21735 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Thu, 14 Mar 2024 20:34:05 -0700 Subject: [PATCH] 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! --- config/environments/development.rb | 2 +- config/environments/production.rb | 2 +- config/environments/test.rb | 2 +- config/routes.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index c8336b21..7dba4447 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -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 diff --git a/config/environments/production.rb b/config/environments/production.rb index 32d4f8ab..7f026729 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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 diff --git a/config/environments/test.rb b/config/environments/test.rb index 79dd5eee..0fe9a411 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -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 diff --git a/config/routes.rb b/config/routes.rb index c850c09a..d4909ddb 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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.