From 570a1d3a1dbbd358f7155ddd33c0c80f203c6b44 Mon Sep 17 00:00:00 2001 From: beckpaul Date: Sat, 2 Dec 2023 21:23:12 -0500 Subject: [PATCH] linting --- .../views/account/get/confirmPasswordReset.js | 26 +++++++++---------- .../views/account/get/requestPasswordReset.js | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/backend/routes/views/account/get/confirmPasswordReset.js b/src/backend/routes/views/account/get/confirmPasswordReset.js index faf09c65..8eee3034 100644 --- a/src/backend/routes/views/account/get/confirmPasswordReset.js +++ b/src/backend/routes/views/account/get/confirmPasswordReset.js @@ -15,26 +15,26 @@ exports = module.exports = function (req, res) { // Ensure token and username are present const validateParamPresence = (token, username) => { - if (!token || !username) { - return 'Invalid request' - } else { - return null - } + if (!token || !username) { + return 'Invalid request' + } else { + return null + } } const errorMsg = validateParamPresence(req.query.username, req.query.token) if (errorMsg) { - flash = {} - flash.class = 'alert-danger' - flash.messages = [{ msg: errorMsg}] - flash.type = 'Error!' + const flash = {} + flash.class = 'alert-danger' + flash.messages = [{ msg: errorMsg }] + flash.type = 'Error!' - const buff = Buffer.from(JSON.stringify(flash)) - const data = buff.toString('base64') + const buff = Buffer.from(JSON.stringify(flash)) + const data = buff.toString('base64') - return overallRes.redirect('/account/requestPasswordReset?flash=' + data) + return overallRes.redirect('/account/requestPasswordReset?flash=' + data) } else { - res.render('account/confirmPasswordReset') + res.render('account/confirmPasswordReset') } } diff --git a/src/backend/routes/views/account/get/requestPasswordReset.js b/src/backend/routes/views/account/get/requestPasswordReset.js index 8bad6de4..e918ae96 100644 --- a/src/backend/routes/views/account/get/requestPasswordReset.js +++ b/src/backend/routes/views/account/get/requestPasswordReset.js @@ -28,7 +28,7 @@ exports = module.exports = async function (req, res) { res.render('account/requestPasswordReset', { section: 'account', - flash: flash, + flash, steamReset: response.data.steamUrl, formData, recaptchaSiteKey: appConfig.recaptchaKey