Skip to content

Commit 0460098

Browse files
nekochanfoodsyuilo
andauthored
feat(backend): Add support of ".well-known/change-password" (#17901)
feat(backend): "/settings/security"へのリダイレクトを実装 Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
1 parent c07ce75 commit 0460098

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- Fix: 通知トーストの位置を左側にした場合でも右から通知が入ってくる問題を修正
1515

1616
### Server
17+
- Feat: `.well-known/change-password`に対応(`/settings/security`にリダイレクトします)
1718
- Enhance: アクセストークンでAPIを使用している際に、自身のアクセストークンを失効させることができるように
1819
- `i/revoke-token` エンドポイントにリクエストすることで、現在使用しているアクセストークンを失効させることができます
1920
- Fix: 既にミュートしているスレッドに対して再度スレッドミュートを作成しようとするとサーバーエラーになる問題を修正

‎packages/backend/src/server/WellKnownServerService.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ export class WellKnownServerService {
111111
return this.oauth2ProviderService.generateRFC8414();
112112
});
113113

114-
/* TODO
115-
fastify.get('/.well-known/change-password', async (request, reply) => {
116-
});
117-
*/
114+
fastify.get('/.well-known/change-password', async (request, reply) => {
115+
const redirectUri = new URL('/settings/security', this.config.url);
116+
reply.redirect(redirectUri.toString(), 302);
117+
});
118118

119119
fastify.get<{ Querystring: { resource: string } }>(webFingerPath, async (request, reply) => {
120120
if (this.meta.federation === 'none') {

0 commit comments

Comments
 (0)