From 35d01c7f31b65a7c4d956ddc19262c467834ee69 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 21 Jul 2003 15:20:58 +0000 Subject: [PATCH] When using the "manual" method, I've disabled the external method of changing passwords, and enabled the internal "change password" button just like "email" and "none". Thanks to Danilo Massa for pointing out the inconsistency. --- admin/auth.php | 2 +- user/view.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/auth.php b/admin/auth.php index de0ef0825d..c6fafff09c 100644 --- a/admin/auth.php +++ b/admin/auth.php @@ -113,7 +113,7 @@ require_once("$CFG->dirroot/auth/$auth/config.html"); - if ($auth != "email" and $auth != "none") { + if ($auth != "email" and $auth != "none" and $auth != "manual") { echo ""; echo "

"; print_string("changepassword", "auth"); diff --git a/user/view.php b/user/view.php index 1f8c2114c1..9e98fb4d54 100644 --- a/user/view.php +++ b/user/view.php @@ -131,15 +131,15 @@ echo ""; $internalpassword = false; - if ($CFG->auth == "email" or $CFG->auth == "none") { + if ($CFG->auth == "email" or $CFG->auth == "none" or $CFG->auth == "manual") { $internalpassword = "$CFG->wwwroot/login/change_password.php"; } // Print other functions echo "

"; if ($currentuser and !isguest()) { - if ($CFG->auth == "email" or $CFG->auth == "none") { - echo ""; -- 2.39.5

wwwroot/login/change_password.php\" METHOD=GET>"; + if ($internalpassword) { + echo "

"; echo "id\">"; echo ""; echo "