You should now be able to resend the confirmation mail with the click of a link that is next to the warning that the mail isn't confirmed. Resend the confirmation mail cleaning Just a way to re use the files and stuff we already have instead of the file I created even though I could use the register_mail we have. Change of route and link to button I changed the route from GET to POST because of security reasons, and changed the link_to to a button_to changed the notice I changed the notice so it said check for the mail instead of check for the link Changed notice and button Changed the notice to say "Check your inbox" instead of "Check your mail" also changed the way the class looks
56 lines
1.2 KiB
Ruby
56 lines
1.2 KiB
Ruby
Redstoner::Application.routes.draw do
|
|
|
|
resources :blogposts, path: '/blog' do
|
|
resources :comments
|
|
end
|
|
|
|
resources :statics, only: [:home, :donate], path: '/' do
|
|
collection do
|
|
get 'donate'
|
|
get 'home'
|
|
get 'index'
|
|
end
|
|
end
|
|
|
|
resources :info
|
|
|
|
resources :users do
|
|
member do
|
|
get 'confirm'
|
|
get 'edit_login'
|
|
post 'resend_mail'
|
|
get 'edit_notifications'
|
|
put 'update_login'
|
|
end
|
|
collection do
|
|
get 'lost_password'
|
|
post 'reset_password'
|
|
post 'suggestions'
|
|
end
|
|
end
|
|
|
|
resources :forumgroups, path: '/forums/groups'
|
|
resources :forums, path: '/forums'
|
|
resources :forumthreads, path: '/forums/threads' do
|
|
resources :threadreplies, path: 'replies'
|
|
end
|
|
|
|
resources :tools do
|
|
collection do
|
|
post 'render_markdown'
|
|
end
|
|
end
|
|
|
|
# get '/status' => 'status#show'
|
|
|
|
get 'login' => 'sessions#new'
|
|
post 'login' => 'sessions#create'
|
|
get 'become' => 'sessions#become'
|
|
get 'revert' => 'sessions#revert'
|
|
delete 'logout' => 'sessions#destroy'
|
|
get 'signup' => 'users#new'
|
|
get '/dmca' => redirect('https://www.youtube.com/watch?v=oHg5SJYRHA0')
|
|
|
|
root to: 'statics#index'
|
|
end
|