Merge branch 'MDL-69958-well-known-password' of https://github.com/brendanheywood/moodle

This commit is contained in:
Jun Pataleta 2023-09-08 09:17:52 +08:00
commit be5de5fccf
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7

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');