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:
+1
-1
@@ -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
@@ -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>";
|
||||
|
||||
Reference in New Issue
Block a user