More comments

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-04-04 22:22:05 +01:00
parent e982e3ad10
commit b69e34e2b5
2 changed files with 3 additions and 1 deletions

View File

@ -6,4 +6,6 @@ const valid = [
"networkrail.co.uk" "networkrail.co.uk"
] ]
// Use Network Rail Control contact book to add domains
module.exports = valid module.exports = valid

View File

@ -7,7 +7,7 @@ const domList= require('../configs/domains.configs')
async function createRegKey(eml){ async function createRegKey(eml){
const domain = clean.splitDomain(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(); const uuid = util.generateKey();
db.addRegReq(await uuid, await domain) db.addRegReq(await uuid, await domain)
mail.sendRegister("mail", "uuid"); mail.sendRegister("mail", "uuid");