More work on code auth

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2024-03-09 20:56:51 +00:00
parent 874b236f09
commit 91e2657d66
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
const valid: string[] = [
export const valid: string[] = [
"owlboard.info",
"avantiwestcoast.co.uk",
"btp.police.uk",
@ -32,6 +32,3 @@ const valid: string[] = [
"tfwrail.wales",
"wmtrains.co.uk",
];
module.exports = valid;
export { valid };

View File

@ -49,6 +49,8 @@ async function regUser(req) {
return { status: 401, errorCode: 703, errorMsg: errors[703] };
}
// Currently errors on a correct code as it cannot be found... Ensure uuid is ALL CAPS
async function getUser(uuid) {
try {
const filter = {

View File

@ -76,6 +76,7 @@ module.exports = {
generateKey,
generateConfirmationEmail,
checkRequest,
generateCode
};
export { isAuthed, generateKey, generateConfirmationEmail, checkRequest };