From 0d70f6e841521bc7f099f05fb9c8c5e6d9d44d56 Mon Sep 17 00:00:00 2001 From: paul-ion Date: Fri, 12 Jul 2024 19:01:42 +0000 Subject: [PATCH] Fix content type and small text change. --- trainingportal/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trainingportal/server.js b/trainingportal/server.js index 13e72839..530444ef 100644 --- a/trainingportal/server.js +++ b/trainingportal/server.js @@ -129,7 +129,7 @@ app.get("/public/providers",(req,res) => { if("slackLoginName" in config) slackLoginDisplayName = config.slackLoginName; providers.push({"name":slackLoginDisplayName,"url":"/public/provider/slack"}); } - if("samlCert" in config) providers.push({"name":"ADFS SAML","url":"/public/provider/saml"}); + if("samlCert" in config) providers.push({"name":"SAML","url":"/public/provider/saml"}); if("localUsersPath" in config) providers.push({"name":"Local","url":"/public/provider/local"}); if("ldapServer" in config) providers.push({"name":"LDAP","url":"/public/provider/ldap"}); @@ -569,7 +569,7 @@ app.delete('/api/user/team', (req, res) => { //get a salt for the challenge code app.get('/api/salt', (req, res) => { req.user.codeSalt = uid.sync(8); - res.send(req.user.codeSalt); + res.setHeader('Content-Type', 'text/plain').send(req.user.codeSalt); }); //upload CSV for user report