Skip to content

Commit 674e7d5

Browse files
committed
Implement Well-Known URL for password change
Fixes #11804
1 parent fcc1125 commit 674e7d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

routers/web/web.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ func RegisterRoutes(m *web.Route) {
236236
if setting.Federation.Enabled {
237237
m.Get("/.well-known/nodeinfo", NodeInfoLinks)
238238
}
239+
m.Get("/.well-known/change-password", func(w http.ResponseWriter, req *http.Request) {
240+
http.Redirect(w, req, "/user/settings/account", http.StatusTemporaryRedirect)
241+
})
242+
239243
m.Group("/explore", func() {
240244
m.Get("", func(ctx *context.Context) {
241245
ctx.Redirect(setting.AppSubURL + "/explore/repos")

0 commit comments

Comments
 (0)