From 7d0b9f9d446a170cabe0291788bed376c245860e Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Wed, 5 Apr 2023 01:09:50 +0100 Subject: [PATCH] Add comments Signed-off-by: Fred Boniface --- src/services/auth.services.js | 2 +- src/utils/auth.utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/auth.services.js b/src/services/auth.services.js index b2dc8d0..20054ad 100644 --- a/src/services/auth.services.js +++ b/src/services/auth.services.js @@ -5,7 +5,7 @@ const mail = require('../services/mail.services') const clean = require('../utils/sanitizer.utils') const domList= require('../configs/domains.configs') -async function createRegKey(eml){ +async function createRegKey(eml){ // Needs moving to register.services const domain = clean.splitDomain(eml) if (domain in domList.valid) { // Don't know if this is correct const uuid = util.generateKey(); diff --git a/src/utils/auth.utils.js b/src/utils/auth.utils.js index 72e3145..37a0d14 100644 --- a/src/utils/auth.utils.js +++ b/src/utils/auth.utils.js @@ -15,7 +15,7 @@ async function isAuthed(key) { // Needs testing } // Creates an API key for a user -async function generateKey() { // Needs testing +async function generateKey() { // Needs testing & moving to 'register.utils' return crypto.randomUUID() };