diff --git a/ecosystem/platform/server/app/controllers/onboarding_controller.rb b/ecosystem/platform/server/app/controllers/onboarding_controller.rb index 7f8828f9d58cf..dc7dedb1427b2 100644 --- a/ecosystem/platform/server/app/controllers/onboarding_controller.rb +++ b/ecosystem/platform/server/app/controllers/onboarding_controller.rb @@ -66,7 +66,7 @@ def email_update log current_user, 'email updated' url = confirmation_url(current_user, confirmation_token: current_user.confirmation_token) SendConfirmEmailJob.perform_now({ user_id: current_user.id, template_vars: { CONFIRM_LINK: url } }) - redirect_to onboarding_email_path, notice: "Verification email sent to #{email_params[:email]}" + render :email_success else render :email, status: :unprocessable_entity end diff --git a/ecosystem/platform/server/app/views/onboarding/email_success.html.erb b/ecosystem/platform/server/app/views/onboarding/email_success.html.erb new file mode 100644 index 0000000000000..7eba69352cfb8 --- /dev/null +++ b/ecosystem/platform/server/app/views/onboarding/email_success.html.erb @@ -0,0 +1,13 @@ +
+

Welcome, <%= @oauth_username %>!

+ +

+ A verification email has been sent to <%= current_user.email %>. +

+

+ Please verify your email by clicking the link sent to your inbox. +

+

+ If you have not received this email, please check your spam folder, or <%= link_to "click here", onboarding_email_path, class: "underline" %> to send a new email. +

+