CJVT updates August and September 2026
This commit is contained in:
@@ -495,6 +495,10 @@ exports.deleteProfile = async (req, res) => {
|
||||
}
|
||||
|
||||
exports.changePassword = async (req, res) => {
|
||||
// SSO accounts have no local password to change - this page doesn't apply to them (the sidebar
|
||||
// link is also hidden for them, but this covers direct navigation to the URL).
|
||||
if (req.user.isSso) return res.redirect(303, '/moj-racun')
|
||||
|
||||
res.render('pages/profile/change-password', {
|
||||
title: req.t('Spremeni geslo')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user