Skip to content

Commit 0d70f6e

Browse files
committed
Fix content type and small text change.
1 parent 8e85ae9 commit 0d70f6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

trainingportal/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ app.get("/public/providers",(req,res) => {
129129
if("slackLoginName" in config) slackLoginDisplayName = config.slackLoginName;
130130
providers.push({"name":slackLoginDisplayName,"url":"/public/provider/slack"});
131131
}
132-
if("samlCert" in config) providers.push({"name":"ADFS SAML","url":"/public/provider/saml"});
132+
if("samlCert" in config) providers.push({"name":"SAML","url":"/public/provider/saml"});
133133
if("localUsersPath" in config) providers.push({"name":"Local","url":"/public/provider/local"});
134134
if("ldapServer" in config) providers.push({"name":"LDAP","url":"/public/provider/ldap"});
135135

@@ -569,7 +569,7 @@ app.delete('/api/user/team', (req, res) => {
569569
//get a salt for the challenge code
570570
app.get('/api/salt', (req, res) => {
571571
req.user.codeSalt = uid.sync(8);
572-
res.send(req.user.codeSalt);
572+
res.setHeader('Content-Type', 'text/plain').send(req.user.codeSalt);
573573
});
574574

575575
//upload CSV for user report

0 commit comments

Comments
 (0)