async _out => {
await breadcrumbs(env, _out)
- p {'Please verify your email address before signing in. Check your email for next steps, or re-send the verification email below.'}
+ p {'Please verify your email address before signing in. Check your email for next steps, or re-send the email verification link below.'}
div.accordion#accordion.mb-5(role="tablist" aria-multiselectable="true") {
div.card#step-1 {
}
}
a.h5.collapsed(data-toggle="collapse" data-parent="#accordion" href="#step-2-collapse" aria-expanded="false" aria-controls="step-2-collapse") {
- 'Send verification email'
+ 'Send email verification link'
}
}
div#step-2-collapse.collapse(role="tabpanel" aria-labelledby="step-2-heading" data-parent="#accordion") {
script(src="/js/api_call.js") {}
script {
- let sign_up_send_verification_email = async (...arguments) => api_call(
- '/api/sign_up/send_verification_email.json',
+ let sign_up_send_email_verification_link = async (...arguments) => api_call(
+ '/api/sign_up/send_email_verification_link.json',
...arguments
)
let email
try {
email = document.getElementById('email').value.slice(0, 256).toLowerCase()
- await sign_up_send_verification_email(email)
+ await sign_up_send_email_verification_link(email)
}
catch (error) {
let problem =
$('#step-2-cross').hide()
$('#step-2-spinner').hide()
- document.getElementById('step-2-message').textContent = `Verification email has been sent to "${email}". Please check your email for next steps.`
+ document.getElementById('step-2-message').textContent = `Email verification link has been sent to "${email}". Please check your email for next steps.`
return true
}