mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
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.
This commit is contained in:
parent
71e431de9e
commit
51a6acb2af
1 changed files with 1 additions and 0 deletions
|
@ -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' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue