Skip to content

Commit 759f8ee

Browse files
committed
fix: regression (missing user data) caused by NodeBB/NodeBB@66adfa2
1 parent 6d9d52a commit 759f8ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/controllers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ Controllers.renderSettings = async (req, res) => {
228228
const hasTotp = await parent.hasTotp(req.user.uid);
229229
const hasAuthn = await parent.hasAuthn(req.user.uid);
230230
res.render('account/2factor', {
231+
...res.locals.userData,
231232
title,
232233
breadcrumbs,
233234
forceTfa,

0 commit comments

Comments
 (0)