Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes/user.rb')
-rw-r--r--config/routes/user.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/routes/user.rb b/config/routes/user.rb
index e682dcd6663..483d34ab4f3 100644
--- a/config/routes/user.rb
+++ b/config/routes/user.rb
@@ -11,6 +11,11 @@ devise_scope :user do
get '/users/almost_there' => 'confirmations#almost_there'
end
+# for secondary email confirmations
+devise_for :emails, controllers: { confirmations: :confirmations }
+devise_scope :email do
+end
+
scope(constraints: { username: Gitlab::PathRegex.root_namespace_route_regex }) do
scope(path: 'users/:username',
as: :user,