diff options
author | Robert Speicher <robert@gitlab.com> | 2016-04-22 08:34:59 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-04-22 08:34:59 +0000 |
commit | 2193a3535b3499a09f6be57f807ee5832317b574 (patch) | |
tree | 6f9cbbf4ba260a58e43036779a3ab6138183ceb4 /app/controllers | |
parent | c39032937a447e44afee3c96971d489a4da39ff1 (diff) | |
parent | 50ed43e49099648fa5c242d0cee15f05e50349c3 (diff) | |
download | gitlab-ce-2193a3535b3499a09f6be57f807ee5832317b574.tar.gz |
Merge branch 'confirmation-screen' into 'master'
Improved email confirmation UX
Closes #4228
See merge request !3184
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/confirmations_controller.rb | 9 | ||||
-rw-r--r-- | app/controllers/registrations_controller.rb | 4 |
2 files changed, 11 insertions, 2 deletions
diff --git a/app/controllers/confirmations_controller.rb b/app/controllers/confirmations_controller.rb index af1faca93f6..7b66ad3f92c 100644 --- a/app/controllers/confirmations_controller.rb +++ b/app/controllers/confirmations_controller.rb @@ -1,7 +1,16 @@ class ConfirmationsController < Devise::ConfirmationsController + def almost_there + flash[:notice] = nil + render layout: "devise_empty" + end + protected + def after_resending_confirmation_instructions_path_for(resource) + users_almost_there_path + end + def after_confirmation_path_for(resource_name, resource) if signed_in?(resource_name) after_sign_in_path_for(resource) diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index c48175a4c5a..059b88e2253 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -31,11 +31,11 @@ class RegistrationsController < Devise::RegistrationsController end def after_sign_up_path_for(_resource) - new_user_session_path + users_almost_there_path end def after_inactive_sign_up_path_for(_resource) - new_user_session_path + users_almost_there_path end private |