password change fix

This commit is contained in:
Evert Prants 2020-01-28 23:13:59 +02:00
parent 3e974b98c1
commit 6cebe08ea5
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -279,7 +279,7 @@ router.get('/user/manage', ensureLogin, wrap(async (req, res) => {
router.get('/user/manage/password', ensureLogin, wrap(async (req, res) => { router.get('/user/manage/password', ensureLogin, wrap(async (req, res) => {
let socialStatus = await API.User.socialStatus(req.session.user) let socialStatus = await API.User.socialStatus(req.session.user)
res.render('user/password_new', {token: socialStatus.password}) res.render('user/password_new', {token: !socialStatus.password})
})) }))
// Change email // Change email