diff --git a/lib/Auth/setEmailProvider.ts b/lib/Auth/setEmailProvider.ts index a664587d..203317e3 100644 --- a/lib/Auth/setEmailProvider.ts +++ b/lib/Auth/setEmailProvider.ts @@ -67,9 +67,9 @@ export async function setEmailProvider(this: AuthHandler, app: e.Express) { } const checkDmarc = async (websiteUrl: string) => { - const { host } = new URL(websiteUrl); + const { host, hostname } = new URL(websiteUrl); const ignoredHosts = ["localhost", "127.0.0.1"] - if(!host || ignoredHosts.includes(host)){ + if(!hostname || ignoredHosts.includes(hostname)){ return; } const dmarc = await promises.resolveTxt(`_dmarc.${host}`); diff --git a/package-lock.json b/package-lock.json index 95debecc..2d1fd991 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "prostgles-server", - "version": "4.2.158", + "version": "4.2.159", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "prostgles-server", - "version": "4.2.158", + "version": "4.2.159", "license": "MIT", "dependencies": { "@aws-sdk/client-ses": "^3.699.0", diff --git a/package.json b/package.json index 2ec6ff17..6f2f3893 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prostgles-server", - "version": "4.2.158", + "version": "4.2.159", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/tests/server/package-lock.json b/tests/server/package-lock.json index 7fb177cf..b534ebb3 100644 --- a/tests/server/package-lock.json +++ b/tests/server/package-lock.json @@ -21,7 +21,7 @@ }, "../..": { "name": "prostgles-server", - "version": "4.2.158", + "version": "4.2.159", "license": "MIT", "dependencies": { "@aws-sdk/client-ses": "^3.699.0",