Add comments

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-04-05 01:09:50 +01:00
parent dd96e95ce5
commit 7d0b9f9d44
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ const mail = require('../services/mail.services')
const clean = require('../utils/sanitizer.utils') const clean = require('../utils/sanitizer.utils')
const domList= require('../configs/domains.configs') const domList= require('../configs/domains.configs')
async function createRegKey(eml){ async function createRegKey(eml){ // Needs moving to register.services
const domain = clean.splitDomain(eml) const domain = clean.splitDomain(eml)
if (domain in domList.valid) { // Don't know if this is correct if (domain in domList.valid) { // Don't know if this is correct
const uuid = util.generateKey(); const uuid = util.generateKey();

View File

@ -15,7 +15,7 @@ async function isAuthed(key) { // Needs testing
} }
// Creates an API key for a user // Creates an API key for a user
async function generateKey() { // Needs testing async function generateKey() { // Needs testing & moving to 'register.utils'
return crypto.randomUUID() return crypto.randomUUID()
}; };