From 51a6acb2af810b3ee29d8a38a88892d008c5ae2f Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Mon, 25 Mar 2019 23:46:27 -0300 Subject: [PATCH] FEATURE: Implements a Well-Know URL for Changing Passwords Read https://github.com/WICG/change-password-url/blob/gh-pages/explainer.md for details on the spec. --- config/routes.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/routes.rb b/config/routes.rb index 93d854e232..2ba524acba 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' }