(well-known url) add change-password

pull/1213/head
Rigel Kent 2018-12-07 01:42:00 +01:00 committed by Chocobozzz
parent 14d1b7b95a
commit 314141279d
2 changed files with 16 additions and 0 deletions

View File

@ -136,6 +136,12 @@ staticRouter.use('/.well-known/dnt/',
}
)
staticRouter.use('/.well-known/change-password',
(_, res: express.Response) => {
res.redirect('/my-account/settings')
}
)
// ---------------------------------------------------------------------------
export {

View File

@ -72,6 +72,16 @@ describe('Test misc endpoints', function () {
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 () {