diff options
author | Brett Walker <brett@digitalmoksha.com> | 2017-09-04 19:23:33 +0200 |
---|---|---|
committer | Brett Walker <brett@digitalmoksha.com> | 2017-09-23 15:23:11 +0200 |
commit | f9f467227538df0ce2012df39dfdcf55fb260f94 (patch) | |
tree | 7ebabd8226e6db955d77ca456406197b6a8c0e6b /config | |
parent | b14641579855a14398db260ab909ae77c164c883 (diff) | |
download | gitlab-ce-f9f467227538df0ce2012df39dfdcf55fb260f94.tar.gz |
Send a confirmation email when the user adds a secondary email address. Utilizes the Devise `confirmable` capabilities. Issue #37385
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, |