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.
This commit is contained in:
moodler
2003-07-21 15:20:58 +00:00
parent 3e09b6262a
commit 35d01c7f31
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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 "<tr valign=\"top\">";
echo "<td align=right nowrap><p>";
print_string("changepassword", "auth");
+3 -3
View File
@@ -131,15 +131,15 @@
echo "</TD></TR></TABLE></TABLE>";
$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 "<CENTER><TABLE ALIGN=CENTER><TR>";
if ($currentuser and !isguest()) {
if ($CFG->auth == "email" or $CFG->auth == "none") {
echo "<TD NOWRAP><P><FORM ACTION=\"$CFG->wwwroot/login/change_password.php\" METHOD=GET>";
if ($internalpassword) {
echo "<TD NOWRAP><P><FORM ACTION=\"$internalpassword\" METHOD=GET>";
echo "<INPUT type=hidden name=id value=\"$course->id\">";
echo "<INPUT type=submit value=\"".get_string("changepassword")."\">";
echo "</FORM></P></TD>";