From c63a8ed59556f5a70847b610361199187b7db6a7 Mon Sep 17 00:00:00 2001 From: MantasMikal Date: Fri, 5 Feb 2021 21:48:54 +0000 Subject: [PATCH] fix: auth bug --- config/dev.json | 2 +- helpers/emailTemplates.js | 6 +++--- server.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/dev.json b/config/dev.json index b665c8d..a5de5d0 100644 --- a/config/dev.json +++ b/config/dev.json @@ -3,7 +3,7 @@ "name": "WebAuthn UX Test API - Dev Mode", "port": 4000, "mode": "development", - "siteUrl": "https://localhost:3000/", + "siteUrl": "https://localhost:3000", "protocol": "http", "serverUrl": "localhost" } diff --git a/helpers/emailTemplates.js b/helpers/emailTemplates.js index 6f4a695..16198a7 100644 --- a/helpers/emailTemplates.js +++ b/helpers/emailTemplates.js @@ -1,7 +1,7 @@ export const accountVerificationTemplate = (url) => ({ - subject: `🎉 Successfully created a new account on Fakebook`, + subject: `🎉 Verify your FakeBook account`, bodyHtml: ` -

Thanks for helping me with the study 😎

- Verify your account by clicking here +

Verify your account by clicking here

+

Thanks for helping me with the study 😎 ` }); \ No newline at end of file diff --git a/server.js b/server.js index c140c42..e8907c3 100644 --- a/server.js +++ b/server.js @@ -19,7 +19,7 @@ const config = cfg.get(mode); app.use( cors({ - origin: [config.siteUrl, "localhost", "http://web-authn.studio"], + origin: [config.siteUrl, "localhost"], credentials: true, allowedHeaders: [ "Content-Type",