Skip to content

Commit

Permalink
add edit_user_registration path
Browse files Browse the repository at this point in the history
  • Loading branch information
rawOrlando committed Jan 2, 2024
1 parent 047efe3 commit a93c71f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,22 @@
concerns :searchable
end

if Rails.env.production? # || Rails.env.tdldev?
# TODO: why are these different maybe just have one
if Rails.env.production? || Rails.env.tdldev?
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'
end
else
# TODO: maybe the issue is here
devise_for :users
devise_scope :user do
get 'users/sign_in', to: 'omniauth#new'
get 'users/edit' => 'devise/registrations#edit', :as => 'edit_user_registration'
end

end
Expand Down

0 comments on commit a93c71f

Please sign in to comment.