Add password reset and email verification, change nomenclature so that "verification...
[ndcode_site.git] / my_account / send_verification_email / index.html.jst
index 5d7c960..9b5d588 100644 (file)
@@ -21,7 +21,7 @@ return async env => {
     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 {
@@ -75,7 +75,7 @@ return async env => {
               }
             }
             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") {
@@ -94,8 +94,8 @@ return async env => {
       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
         )
 
@@ -121,7 +121,7 @@ return async env => {
           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 =
@@ -148,7 +148,7 @@ return async env => {
           $('#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
         }