Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Hide password field when password change is not supported by auth-mod…

…ule.
  • Loading branch information...
commit 87b490dfc6cf740df01ce9ddd09b9cb96d5b58ed 1 parent 580f2fb
paca70 authored
Showing with 14 additions and 12 deletions.
  1. +14 −12 user/edit.html
View
26 user/edit.html
@@ -21,19 +21,21 @@
echo "</td>";
echo "</tr>";
- echo "<tr valign=top>";
- echo "<td><P>".get_string("newpassword").":</td>";
- echo "<td><input type=text name=newpassword size=20 value=\"";
- if (isset($user->newpassword)) p($user->newpassword);
- echo "\">";
- if (isset($err["newpassword"])) {
- formerr($err["newpassword"]);
- } else if (empty($user->newpassword)) {
- echo " (".get_string("leavetokeep").")";
+ if($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){
+ echo "<tr valign=top>";
+ echo "<td><P>".get_string("newpassword").":</td>";
+ echo "<td><input type=text name=newpassword size=20 value=\"";
+ if (isset($user->newpassword)) p($user->newpassword);
+ echo "\">";
+ if (isset($err["newpassword"])) {
+ formerr($err["newpassword"]);
+ } else if (empty($user->newpassword)) {
+ echo " (".get_string("leavetokeep").")";
+ }
+ echo "</td>";
+ echo "</tr>";
+ echo "<tr><td colspan=2><HR></td></tr>";
}
- echo "</td>";
- echo "</tr>";
- echo "<tr><td colspan=2><HR></td></tr>";
}
?>
<tr valign=top>
Please sign in to comment.
Something went wrong with that request. Please try again.