FEATURE: Implements a Well-Know URL for Changing Passwords

FEATURE: Implements a Well-Know URL for Changing Passwords

Read change-password-url/explainer.md at gh-pages · WICG/change-password-url · GitHub for details on the spec.

diff --git a/config/routes.rb b/config/routes.rb
index 93d854e..2ba524a 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' }

GitHub sha: 51a6acb2

1 Like

:+1:

1 Like

This commit has been mentioned on Discourse Meta. There might be relevant details there: