Skip to content

Commit

Permalink
Merge pull request #152 from OWASP/fix-content-type-for-salt-api
Browse files Browse the repository at this point in the history
Fix content type for salt api and small text change.
  • Loading branch information
paul-ion authored Jul 22, 2024
2 parents 5a404be + 0d70f6e commit 3d9963d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trainingportal/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"});

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3d9963d

Please sign in to comment.