FEATURE: Move security related user preferences to different tab (#12264)

This commit is contained in:
Bianca Nenciu
2021-03-03 11:09:22 +02:00
committed by GitHub
parent b49b455e47
commit 039d0d3641
10 changed files with 269 additions and 228 deletions

View File

@@ -450,6 +450,7 @@ Discourse::Application.routes.draw do
get "#{root_path}/:username/preferences" => "users#preferences", constraints: { username: RouteFormat.username }
get "#{root_path}/:username/preferences/email" => "users_email#index", constraints: { username: RouteFormat.username }
get "#{root_path}/:username/preferences/account" => "users#preferences", constraints: { username: RouteFormat.username }
get "#{root_path}/:username/preferences/security" => "users#preferences", constraints: { username: RouteFormat.username }
get "#{root_path}/:username/preferences/profile" => "users#preferences", constraints: { username: RouteFormat.username }
get "#{root_path}/:username/preferences/emails" => "users#preferences", constraints: { username: RouteFormat.username }
put "#{root_path}/:username/preferences/primary-email" => "users#update_primary_email", format: :json, constraints: { username: RouteFormat.username }