Skip to content

Commit

Permalink
fix flash persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
beckpaul committed Dec 3, 2023
1 parent 66be0d7 commit b8667bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/routes/views/account/get/requestPasswordReset.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -27,7 +28,7 @@ exports = module.exports = async function (req, res) {

res.render('account/requestPasswordReset', {
section: 'account',
flash: flash || {},
flash: flash,

Check warning on line 31 in src/backend/routes/views/account/get/requestPasswordReset.js

View workflow job for this annotation

GitHub Actions / checks

Expected property shorthand
steamReset: response.data.steamUrl,
formData,
recaptchaSiteKey: appConfig.recaptchaKey
Expand Down

0 comments on commit b8667bd

Please sign in to comment.