diff --git a/mail-templates/register.html b/mail-templates/register.html index c001b31..df510bd 100644 --- a/mail-templates/register.html +++ b/mail-templates/register.html @@ -2,11 +2,14 @@ OwlBoard - Register - -

+

@@ -62,27 +77,25 @@

Register for OwlBoard


- Tap the button to register this device, or scan the barcode with - another device. + You'll need to type your registration code in to the OwlBoard app


+

Your Code:

+ 987654 +

Register this deviceGo to Registration Page


-

Or scan with the device you want to register

-
+

Scan to visit the Registration Page

Scan barcode to register on another device


-

- Alternatively copy and paste the link:
https://owlboard.info/more/reg/submit?key=>>ACCESSCODE<< -

This registration is for one device only, you can register again using the same email address for other devices and access OwlBoard @@ -96,7 +109,7 @@ can safely ignore this email. Your email address has not been stored by us.

-

The registration link will expire after 4 hours.

+

The registration link will expire after 1 hour.

OwlBoard Logo
diff --git a/mail-templates/register.txt b/mail-templates/register.txt index e49454d..1db4ab3 100644 --- a/mail-templates/register.txt +++ b/mail-templates/register.txt @@ -1,6 +1,6 @@ Complete your OwlBoard (Staff) Registration by entering your six digit code. ->>ACCESSCODE<< +987654 Use the same browser you wish to use OwlBoard with diff --git a/src/utils/auth.utils.ts b/src/utils/auth.utils.ts index 81ae8db..c452a6e 100644 --- a/src/utils/auth.utils.ts +++ b/src/utils/auth.utils.ts @@ -47,13 +47,13 @@ export function generateCode(): string { async function generateConfirmationEmail(eml: string, uuid: string) { try { const htmlTpl = await fs.readFile("mail-templates/register.html", "utf-8"); - const htmlStr = htmlTpl.replace(/>>ACCESSCODE<>ACCESSCODE<