Skip to content

A platform for community discussion. Free, open, simple.

FEATURE: Implements a Well-Know URL for Changing Passwords

Rafael dos Santos Silva51a6acb2af81
diff --git a/config/routes.rb b/config/routes.rb
index 93d854e232a..2ba524acba6 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -345,6 +345,7 @@ Discourse::Application.routes.draw do
get "my/*path", to: 'users#my_redirect'
get "user_preferences" => "users#user_preferences_redirect"
+ get ".well-known/change-password", to: redirect(relative_url_root + 'my/preferences/account', status: 302)
%w{users u}.each_with_index do |root_path, index|
get "#{root_path}" => "users#index", constraints: { format: 'html' }