diff --git a/config/routes/user.rb b/config/routes/user.rb index 483d34ab4f3..c4b34402068 100644 --- a/config/routes/user.rb +++ b/config/routes/user.rb @@ -13,8 +13,6 @@ 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',