diff --git a/src/backend/routes/views/account/get/requestPasswordReset.js b/src/backend/routes/views/account/get/requestPasswordReset.js index e5128b93..8bad6de4 100644 --- a/src/backend/routes/views/account/get/requestPasswordReset.js +++ b/src/backend/routes/views/account/get/requestPasswordReset.js @@ -12,6 +12,7 @@ exports = module.exports = async function (req, res) { throw new Error('java-api error') } + let flash = {} if (req.query.flash) { const buff = Buffer.from(req.query.flash, 'base64') const text = buff.toString('ascii') @@ -27,7 +28,7 @@ exports = module.exports = async function (req, res) { res.render('account/requestPasswordReset', { section: 'account', - flash: flash || {}, + flash: flash, steamReset: response.data.steamUrl, formData, recaptchaSiteKey: appConfig.recaptchaKey