Updating the sign in process for presenters and session moderators. Got rid of old code.
This commit is contained in:
@@ -747,6 +747,7 @@ export async function email_sign_in__event_presenter (
|
||||
base_url,
|
||||
person_id,
|
||||
person_passcode,
|
||||
event_id,
|
||||
event_session_id,
|
||||
event_presentation_id,
|
||||
event_presenter_id,
|
||||
@@ -760,6 +761,7 @@ export async function email_sign_in__event_presenter (
|
||||
base_url: string,
|
||||
person_id: string,
|
||||
person_passcode: string,
|
||||
event_id: string,
|
||||
event_session_id: string,
|
||||
event_presentation_id: string,
|
||||
event_presenter_id: string,
|
||||
@@ -772,31 +774,31 @@ export async function email_sign_in__event_presenter (
|
||||
console.log(`*** email_sign_in__event_presenter() *** to_email=${to_email} to_name=${to_name} person_id=${person_id} person_passcode=${person_passcode} presentation_id=${event_presentation_id} presenter_id=${event_presenter_id}`);
|
||||
}
|
||||
|
||||
let subject = `LCI Congress 2024 - Pres Mgmt Hub Sign In Link for ${session_name} (ID: ${event_session_id})`;
|
||||
let subject = `LCI Congress 2025 - Pres Mgmt Hub Sign In Link for ${session_name} (ID: ${event_session_id})`;
|
||||
|
||||
let sign_in_url = encodeURI(`${base_url}/events_pres_mgmt/session/${event_session_id}?person_id=${person_id}&person_pass=${person_passcode}&presentation_id=${event_presentation_id}&presenter_id=${event_presenter_id}`)
|
||||
let sign_in_url = encodeURI(`${base_url}/events/${event_id}/session/${event_session_id}?person_id=${person_id}&person_pass=${person_passcode}&presentation_id=${event_presentation_id}&presenter_id=${event_presenter_id}`)
|
||||
|
||||
let body_html = `
|
||||
<div>${to_name},
|
||||
<p>Your link to sign into the presentation management hub for LCI Congress 2024 is below. If you did not request this, please delete and ignore this email. If you need to make any changes or updates to your submission, you may use this link again later.</p>
|
||||
<p>Your link to sign into the presentation management hub for LCI Congress 2025 is below. If you did not request this, please delete and ignore this email. If you need to make any changes or updates to your submission, you may use this link again later.</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<strong>26th Annual Lean Construction Congress (2024)</strong>:<br>
|
||||
<strong>27th Annual Lean Construction Congress (2025)</strong>:<br>
|
||||
<p>
|
||||
Session Name: ${session_name}<br>
|
||||
Session ID: ${event_session_id}<br>
|
||||
Presentation Name: ${presentation_name}<br>
|
||||
Presentation ID: ${event_presentation_id}
|
||||
</p>
|
||||
<p>Use this link to view or update your LCI 2024 presentation information.<br>
|
||||
<p>Use this link to view or update your LCI 2025 presentation information.<br>
|
||||
Copy and paste link: <a href="${sign_in_url}">${sign_in_url}</a></p>
|
||||
</div>`;
|
||||
|
||||
api.send_email({
|
||||
api_cfg: api_cfg,
|
||||
from_email: 'noreply+presmgmt@oneskyit.com',
|
||||
from_name: 'LCI 2024 Pres Mgmt Hub',
|
||||
from_name: 'LCI 2025 Pres Mgmt Hub',
|
||||
to_email: to_email,
|
||||
subject: subject,
|
||||
body_html: body_html,
|
||||
|
||||
@@ -1040,6 +1040,7 @@ export async function email_sign_in__event_session (
|
||||
base_url,
|
||||
person_id,
|
||||
person_passcode,
|
||||
event_id,
|
||||
event_session_id,
|
||||
session_name,
|
||||
}: {
|
||||
@@ -1049,35 +1050,36 @@ export async function email_sign_in__event_session (
|
||||
base_url: string,
|
||||
person_id: string,
|
||||
person_passcode: string,
|
||||
event_id: string,
|
||||
event_session_id: string,
|
||||
session_name: string,
|
||||
}
|
||||
) {
|
||||
console.log(`*** email_sign_in__event_session() *** to_email=${to_email} to_name=${to_name} person_id=${person_id} person_passcode=${person_passcode} session_id=${event_session_id}`);
|
||||
|
||||
let subject = `LCI Congress 2024 - Pres Mgmt Hub Sign In Link for ${session_name} (ID: ${event_session_id})`;
|
||||
let subject = `LCI Congress 2025 - Pres Mgmt Hub Sign In Link for ${session_name} (ID: ${event_session_id})`;
|
||||
|
||||
let sign_in_url = encodeURI(`${base_url}/events_pres_mgmt/session/${event_session_id}?person_id=${person_id}&person_pass=${person_passcode}&session_id=${event_session_id}`)
|
||||
let sign_in_url = encodeURI(`${base_url}/events/${event_id}/session/${event_session_id}?person_id=${person_id}&person_pass=${person_passcode}&session_id=${event_session_id}`)
|
||||
|
||||
let body_html = `
|
||||
<div>${to_name},
|
||||
<p>Your link to sign into the presentation management hub as a session Champion for LCI Congress 2024 is below. If you did not request this, please delete and ignore this email. If you need to make any changes or updates to your submission, you may use this link again later.</p>
|
||||
<p>Your link to sign into the presentation management hub as a session Champion for LCI Congress 2025 is below. If you did not request this, please delete and ignore this email. If you need to make any changes or updates to your submission, you may use this link again later.</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<strong>26th Annual Lean Construction Congress (2024)</strong>:<br>
|
||||
<strong>27th Annual Lean Construction Congress (2025)</strong>:<br>
|
||||
<p>
|
||||
Session Name: ${session_name}<br>
|
||||
Session ID: ${event_session_id}
|
||||
</p>
|
||||
<p>Use this link to view or update your LCI 2024 session information.<br>
|
||||
<p>Use this link to view or update your LCI 2025 session information.<br>
|
||||
Copy and paste link: <a href="${sign_in_url}">${sign_in_url}</a></p>
|
||||
</div>`;
|
||||
|
||||
api.send_email({
|
||||
api_cfg: api_cfg,
|
||||
from_email: 'noreply+presmgmt@oneskyit.com',
|
||||
from_name: 'LCI 2024 Pres Mgmt Hub',
|
||||
from_name: 'LCI 2025 Pres Mgmt Hub',
|
||||
to_email: to_email,
|
||||
subject: subject,
|
||||
body_html: body_html,
|
||||
|
||||
Reference in New Issue
Block a user