pis #12

Merged
fred.boniface merged 95 commits from pis into main 2023-05-06 21:54:51 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 7d0b9f9d44 - Show all commits

View File

@ -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();

View File

@ -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()
};