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",
|
"owlboard.info",
|
||||||
"avantiwestcoast.co.uk",
|
"avantiwestcoast.co.uk",
|
||||||
"btp.police.uk",
|
"btp.police.uk",
|
||||||
@ -32,6 +32,3 @@ const valid: string[] = [
|
|||||||
"tfwrail.wales",
|
"tfwrail.wales",
|
||||||
"wmtrains.co.uk",
|
"wmtrains.co.uk",
|
||||||
];
|
];
|
||||||
|
|
||||||
module.exports = valid;
|
|
||||||
export { valid };
|
|
||||||
|
@ -49,6 +49,8 @@ async function regUser(req) {
|
|||||||
return { status: 401, errorCode: 703, errorMsg: errors[703] };
|
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) {
|
async function getUser(uuid) {
|
||||||
try {
|
try {
|
||||||
const filter = {
|
const filter = {
|
||||||
|
@ -76,6 +76,7 @@ module.exports = {
|
|||||||
generateKey,
|
generateKey,
|
||||||
generateConfirmationEmail,
|
generateConfirmationEmail,
|
||||||
checkRequest,
|
checkRequest,
|
||||||
|
generateCode
|
||||||
};
|
};
|
||||||
|
|
||||||
export { isAuthed, generateKey, generateConfirmationEmail, checkRequest };
|
export { isAuthed, generateKey, generateConfirmationEmail, checkRequest };
|
||||||
|
Loading…
Reference in New Issue
Block a user