(well-known url) add change-password
This commit is contained in:
parent
14d1b7b95a
commit
314141279d
2 changed files with 16 additions and 0 deletions
|
@ -136,6 +136,12 @@ staticRouter.use('/.well-known/dnt/',
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
staticRouter.use('/.well-known/change-password',
|
||||||
|
(_, res: express.Response) => {
|
||||||
|
res.redirect('/my-account/settings')
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
|
|
@ -72,6 +72,16 @@ describe('Test misc endpoints', function () {
|
||||||
|
|
||||||
expect(res.body.tracking).to.equal('N')
|
expect(res.body.tracking).to.equal('N')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('Should get change-password location', async function () {
|
||||||
|
const res = await makeGetRequest({
|
||||||
|
url: server.url,
|
||||||
|
path: '/.well-known/change-password',
|
||||||
|
statusCodeExpected: 302
|
||||||
|
})
|
||||||
|
|
||||||
|
expect(res.header.location).to.equal('/my-account/settings')
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('Test classic static endpoints', function () {
|
describe('Test classic static endpoints', function () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue