Skip to content

Commit

Permalink
🐛 bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Jan 17, 2021
1 parent d36b3db commit 24c9723
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions routers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ router.get('/configure', userRequired, (req, res, next) => {
}
res.locals.message = req.flash('message');
res.locals.showPasswordWarning = showPasswordWarning;
if (req.session.user.prefix === null) {
req.session.user.prefix = req.session.user.username;
}
res.locals.verifyUrl = config.href + req.session.user.prefix + '/verify';
res.render('configure', req.session.user);
});
Expand Down

0 comments on commit 24c9723

Please sign in to comment.