From b8667bd40a1546901fe2bd38aaa46249cd3ecbc4 Mon Sep 17 00:00:00 2001 From: beckpaul Date: Sat, 2 Dec 2023 21:19:30 -0500 Subject: [PATCH] fix flash persistence --- src/backend/routes/views/account/get/requestPasswordReset.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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