diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/routes/user.rb | 5 |
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, |
