Skip to content

Commit

Permalink
note for old work beign defunked
Browse files Browse the repository at this point in the history
  • Loading branch information
rawOrlando committed Mar 4, 2024
1 parent 1aac370 commit 70077db
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,18 @@
# TODO: why are these different maybe just have one
if Rails.env.production? || Rails.env.tdldev?
# Patch convert get users
get 'users/sign_in', to: 'omniauth#sign_in_help'
# get 'users/sign_in', to: 'omniauth#sign_in_help'
devise_for :users, controllers: { omniauth_callbacks: "omniauthcallbacks" }, skip: [:sessions]
devise_scope :user do
get 'users/sign_in', to: 'omniauth#new'
post 'sign_in', to: 'omniauth#new', as: :new_user_session
post 'sign_in', to: 'omniauth_callbacks#shibboleth', as: :new_session
get 'sign_out', to: 'devise/sessions#destroy', as: :destroy_user_session
get 'users/edit' => 'devise/registrations#edit', :as => 'edit_user_registration'
# TODO: I don't rember why I added this
# get 'users/edit' => 'devise/registrations#edit', :as => 'edit_user_registration'
end
else
# TODO: maybe the issue is here
# TODO: maybe the issue is here, review why this is here
devise_for :users
devise_scope :user do
get 'users/sign_in', to: 'omniauth#new'
Expand Down

0 comments on commit 70077db

Please sign in to comment.