mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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
@ -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…
Reference in New Issue
Block a user