File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -232,10 +232,16 @@ func RegisterRoutes(m *web.Route) {
232232 // Routers.
233233 // for health check
234234 m .Get ("/" , Home )
235- m .Get ("/.well-known/openid-configuration" , user .OIDCWellKnown )
236- if setting .Federation .Enabled {
237- m .Get ("/.well-known/nodeinfo" , NodeInfoLinks )
238- }
235+ m .Group ("/.well-known" , func () {
236+ m .Get ("/openid-configuration" , user .OIDCWellKnown )
237+ if setting .Federation .Enabled {
238+ m .Get ("/nodeinfo" , NodeInfoLinks )
239+ }
240+ m .Get ("/change-password" , func (w http.ResponseWriter , req * http.Request ) {
241+ http .Redirect (w , req , "/user/settings/account" , http .StatusTemporaryRedirect )
242+ })
243+ })
244+
239245 m .Group ("/explore" , func () {
240246 m .Get ("" , func (ctx * context.Context ) {
241247 ctx .Redirect (setting .AppSubURL + "/explore/repos" )
You can’t perform that action at this time.
0 commit comments