]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-7783 Non-internal authentication change password URL doesn't work - patch by...
authorskodak <skodak>
Sun, 3 Dec 2006 20:06:35 +0000 (20:06 +0000)
committerskodak <skodak>
Sun, 3 Dec 2006 20:06:35 +0000 (20:06 +0000)
user/view.php

index 73aaf35ff4234495c09feb664143a2d4202aa82a..5ec14fd0309b2b9145395d7bfc522cacbe13e1b8 100644 (file)
                 echo "<input type=\"submit\" value=\"".get_string("changepassword")."\" />";
             }
             echo "</form></td>";
-        } else if ( strlen($CFG->changepassword) > 1 ) {
-            echo "<td nowrap=\"nowrap\"><form action=\"$CFG->changepassword\" method=\"get\">";
+        } else if ( strlen($CFG->{'auth_'.$user->auth.'_changepasswordurl'}) > 1 ) {
+            echo "<td nowrap=\"nowrap\"><form action=\"".$CFG->{'auth_'.$user->auth.'_changepasswordurl'}."\" method=\"get\">";
             echo "<input type=\"submit\" value=\"".get_string("changepassword")."\" />";
             echo "</form></td>";
         }