ActivityPub-federated video streaming platform using P2P directly in your web browser
(well-known url) add change-password
Rigel Kent314141279db4
diff --git a/server/controllers/static.ts b/server/controllers/static.tsindex 55e7392a1a..4fd58f70c0 100644--- a/server/controllers/static.ts+++ b/server/controllers/static.ts@@ -136,6 +136,12 @@ staticRouter.use('/.well-known/dnt/',})+staticRouter.use('/.well-known/change-password',+ (_, res: express.Response) => {+ res.redirect('/my-account/settings')+ }+)+// ---------------------------------------------------------------------------export {diff --git a/server/tests/misc-endpoints.ts b/server/tests/misc-endpoints.tsindex b53803ee1d..4de47d6930 100644--- a/server/tests/misc-endpoints.ts+++ b/server/tests/misc-endpoints.ts@@ -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 () {