diff --git a/server.js b/server.js index 400fb6f..5482b5a 100644 --- a/server.js +++ b/server.js @@ -347,7 +347,7 @@ if(variables.serviceWeb) { res.render('voucher', { baseUrl: req.headers['x-ingress-path'] ? req.headers['x-ingress-path'] : '', user: user, - userIcon: crypto.createHash('sha256').update(user.email).digest('hex'), + userIcon: req.oidc ? crypto.createHash('sha256').update(user.email).digest('hex') : '', authDisabled: variables.authDisabled, info: req.flashMessage.type === 'info', info_text: req.flashMessage.message || '', @@ -393,7 +393,7 @@ if(variables.serviceWeb) { res.render('status', { baseUrl: req.headers['x-ingress-path'] ? req.headers['x-ingress-path'] : '', user: user, - userIcon: crypto.createHash('sha256').update(user.email).digest('hex'), + userIcon: req.oidc ? crypto.createHash('sha256').update(user.email).digest('hex') : '', authDisabled: variables.authDisabled, status: status() }); diff --git a/template/partials/navigation.ejs b/template/partials/navigation.ejs index aa0f907..5c22846 100644 --- a/template/partials/navigation.ejs +++ b/template/partials/navigation.ejs @@ -25,7 +25,13 @@