Skip to content

Commit

Permalink
Add email success page.
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharydenton authored and aptos-bot committed May 13, 2022
1 parent 8763087 commit 91034ea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div class="flex-[2]">
<h2 class="text-4xl text-teal-400 font-mono mb-16 mt-8">Welcome, <%= @oauth_username %>!</h2>

<p class="mb-4 font-light">
A verification email has been sent to <strong><%= current_user.email %></strong>.
</p>
<p class="mb-4 font-light">
Please verify your email by clicking the link sent to your inbox.
</p>
<p class="mb-4 font-light">
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.
</p>
</div>

0 comments on commit 91034ea

Please sign in to comment.