Skip to content
Browse files

Allow password changes with standard password change dialog if

$CFG->{'auth_'.$USER->auth.'_stdchangepassword'} is true.
  • Loading branch information...
1 parent f9aa73d commit e09ecb06045672bb730f9c7a6da6d3ddc12d1994 paca70 committed Oct 10, 2004
Showing with 3 additions and 3 deletions.
  1. +3 −3 user/view.php
View
6 user/view.php
@@ -222,7 +222,7 @@
$internalpassword = false;
- if (is_internal_auth()) {
+ if (is_internal_auth() or ( $CFG->{'auth_'.$USER->auth.'_stdchangepassword'} and $CFG->{'auth_'.$USER->auth.'_stdchangepassword'} == 1)) {
if(empty($CFG->loginhttps)) {
$internalpassword = "$CFG->wwwroot/login/change_password.php";
} else {
@@ -233,12 +233,12 @@
// Print other functions
echo "<center><table align=\"center\"><tr>";
if ($currentuser and !isguest()) {
- if ($internalpassword) {
+ if ($internalpassword ) {
echo "<td nowrap=\"nowrap\"><form action=\"$internalpassword\" method=\"get\">";
echo "<input type=\"hidden\" name=\"id\" value=\"$course->id\" />";
echo "<input type=\"submit\" value=\"".get_string("changepassword")."\" />";
echo "</form></td>";
- } else if (strlen($CFG->changepassword) > 1) {
+ } else if ( strlen($CFG->changepassword) > 1 ) {
echo "<td nowrap=\"nowrap\"><form action=\"$CFG->changepassword\" method=\"get\">";
echo "<input type=\"submit\" value=\"".get_string("changepassword")."\" />";
echo "</form></td>";

0 comments on commit e09ecb0

Please sign in to comment.
Something went wrong with that request. Please try again.