From b69e34e2b552ba20fd6aa1fc55bdecd2c84ac475 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Tue, 4 Apr 2023 22:22:05 +0100 Subject: [PATCH] More comments Signed-off-by: Fred Boniface --- src/configs/domains.configs.js | 2 ++ src/services/auth.services.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/configs/domains.configs.js b/src/configs/domains.configs.js index 659ec56..0b93a75 100644 --- a/src/configs/domains.configs.js +++ b/src/configs/domains.configs.js @@ -6,4 +6,6 @@ const valid = [ "networkrail.co.uk" ] +// Use Network Rail Control contact book to add domains + module.exports = valid \ No newline at end of file diff --git a/src/services/auth.services.js b/src/services/auth.services.js index 6b7c3d6..b2dc8d0 100644 --- a/src/services/auth.services.js +++ b/src/services/auth.services.js @@ -7,7 +7,7 @@ const domList= require('../configs/domains.configs') async function createRegKey(eml){ const domain = clean.splitDomain(eml) - if (domain in domList.valid) { + if (domain in domList.valid) { // Don't know if this is correct const uuid = util.generateKey(); db.addRegReq(await uuid, await domain) mail.sendRegister("mail", "uuid");