Skip to content

Commit

Permalink
docs(auth): mark whydSid mentions as legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienjoly committed Dec 29, 2023
1 parent 1ada22f commit 2d6db5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/admin/test.js
Expand Up @@ -57,7 +57,7 @@ exports.controller = function (request, reqParams, response) {
const p = {
loggedUser: request.getUser(),
session: request.session,
cookie: 'whydSid=' + (request.getCookies() || {})['whydSid'],
cookie: 'whydSid=' + (request.getCookies() || {})['whydSid'], // legacy auth/session
};
const tests = testFile.makeTests(p);
runTests(tests, p, function (res) {
Expand Down
2 changes: 1 addition & 1 deletion test/api/auth.api.tests.js
Expand Up @@ -40,7 +40,7 @@ describe('auth api', function () {
it('succeeds', async () => {
const { response, body } = await loginAs(ADMIN_USER);
const cookies = ((response.headers || {})['set-cookie'] || []).join(' ');
assert(/whydSid=/.test(cookies));
assert(/whydSid=/.test(cookies)); // legacy auth/session
assert(body.redirect);
});

Expand Down

0 comments on commit 2d6db5f

Please sign in to comment.