|
|
@@ -95,8 +95,8 @@ Avalanche2::Application.routes.draw do
|
95
|
95
|
# Devise Routes
|
96
|
96
|
devise_for :users, :skip => [:sessions, :passwords, :confirmations, :registrations], controllers: { invitations: "users/invitations" }
|
97
|
97
|
as :user do
|
98
|
|
- get 'login' => 'devise/sessions#new', :as => :new_user_session
|
99
|
|
- post 'login' => 'devise/sessions#create', :as => :user_session
|
|
98
|
+ get 'login' => 'users/sessions#new', :as => :new_user_session
|
|
99
|
+ post 'login' => 'users/sessions#create', :as => :user_session
|
100
|
100
|
delete 'logout' => 'devise/sessions#destroy', :as => :destroy_user_session
|
101
|
101
|
get 'signup' => 'users/registrations#new', :as => :new_user_registration
|
102
|
102
|
post 'signup' => 'users/registrations#create', :as => :user_registration
|
|
|
@@ -104,20 +104,20 @@ Avalanche2::Application.routes.draw do
|
104
|
104
|
|
105
|
105
|
scope '/account' do
|
106
|
106
|
# password reset
|
107
|
|
- get '/reset-password' => 'devise/passwords#new', as: 'new_user_password'
|
108
|
|
- put '/reset-password' => 'devise/passwords#update', :as => :user_password
|
109
|
|
- post '/reset-password' => 'devise/passwords#create', :as => :reset_password
|
110
|
|
- get '/reset-password/change' => 'devise/passwords#edit', as: 'edit_user_password'
|
|
107
|
+ get '/reset-password' => 'users/passwords#new', as: 'new_user_password'
|
|
108
|
+ put '/reset-password' => 'users/passwords#update', :as => :user_password
|
|
109
|
+ post '/reset-password' => 'users/passwords#create', :as => :reset_password
|
|
110
|
+ get '/reset-password/change' => 'users/passwords#edit', as: 'edit_user_password'
|
111
|
111
|
# confirmation
|
112
|
|
- get '/confirm' => 'devise/confirmations#show', as: 'user_confirmation'
|
113
|
|
- post '/confirm' => 'devise/confirmations#create'
|
114
|
|
- get '/confirm/resend' => 'devise/confirmations#new', as: 'new_user_confirmation'
|
|
112
|
+ get '/confirm' => 'users/confirmations#show', as: 'user_confirmation'
|
|
113
|
+ post '/confirm' => 'users/confirmations#create'
|
|
114
|
+ get '/confirm/resend' => 'users/confirmations#new', as: 'new_user_confirmation'
|
115
|
115
|
# settings & cancellation
|
116
|
|
- get '/cancel' => 'devise/registrations#cancel', as: 'cancel_user_registration'
|
117
|
|
- get '/settings' => 'devise/registrations#edit', as: 'edit_user_registration'
|
|
116
|
+ get '/cancel' => 'users/registrations#cancel', as: 'cancel_user_registration'
|
|
117
|
+ get '/settings' => 'users/registrations#edit', as: 'edit_user_registration'
|
118
|
118
|
put '/settings' => 'users/registrations#update', as: 'update_user_registration'
|
119
|
119
|
# account deletion
|
120
|
|
- delete 'delete_account' => 'devise/registrations#destroy', :as => :delete_user_account
|
|
120
|
+ delete 'delete_account' => 'users/registrations#destroy', :as => :delete_user_account
|
121
|
121
|
end
|
122
|
122
|
end
|
123
|
123
|
|