summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/routes/profile.rb3
-rw-r--r--config/routes/user.rb3
2 files changed, 3 insertions, 3 deletions
diff --git a/config/routes/profile.rb b/config/routes/profile.rb
index ea4dd9b67ec..ddc852f0132 100644
--- a/config/routes/profile.rb
+++ b/config/routes/profile.rb
@@ -1,3 +1,6 @@
+# for secondary email confirmations - uses the same confirmation controller as :users
+devise_for :emails, path: 'profile/emails', controllers: { confirmations: :confirmations }
+
resource :profile, only: [:show, :update] do
member do
get :audit_log
diff --git a/config/routes/user.rb b/config/routes/user.rb
index 8ee79e96836..e682dcd6663 100644
--- a/config/routes/user.rb
+++ b/config/routes/user.rb
@@ -11,9 +11,6 @@ devise_scope :user do
get '/users/almost_there' => 'confirmations#almost_there'
end
-# for secondary email confirmations
-devise_for :emails, controllers: { confirmations: :confirmations }
-
scope(constraints: { username: Gitlab::PathRegex.root_namespace_route_regex }) do
scope(path: 'users/:username',
as: :user,