More work on code auth
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
874b236f09
commit
91e2657d66
@ -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 };
|
||||
|
@ -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 = {
|
||||
|
@ -76,6 +76,7 @@ module.exports = {
|
||||
generateKey,
|
||||
generateConfirmationEmail,
|
||||
checkRequest,
|
||||
generateCode
|
||||
};
|
||||
|
||||
export { isAuthed, generateKey, generateConfirmationEmail, checkRequest };
|
||||
|
Loading…
Reference in New Issue
Block a user