MDL-69958 auth: Handle well-known/change-password requests

This commit is contained in:
Brendan Heywood 2021-09-21 18:54:58 +10:00
parent 9bfcd77d51
commit ede64f3338

View File

@ -29,6 +29,12 @@
require('../config.php'); // phpcs:ignore
// Until we have a more robust routing api in place this is a very simple
// and clean way to handle arbitrary urls without a php extension.
if ($ME === '/.well-known/change-password') {
redirect(new moodle_url('/login/change_password.php'));
}
$context = context_system::instance();
$title = get_string('pagenotexisttitle', 'error');
$PAGE->set_url('/error/index.php');