Fix for MDL-7505.
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
<td><?php print_string("username") ?>:</td>
|
||||
<td>
|
||||
<?php if (has_capability('moodle/user:update',get_context_instance(CONTEXT_SYSTEM, SITEID)) || empty($frm->username)) { ?>
|
||||
<input type="text" name="username" size="25" value="<?php p($frm->username) ?>" alt="<?php print_string("username") ?>" />
|
||||
<input type="text" name="username" size="25" value="<?php p($frm->username) ?>" />
|
||||
<?php } else { ?>
|
||||
<input type="hidden" name="username" value="<?php p($frm->username)?>" /> <?php p($frm->username)?>
|
||||
<?php } ?>
|
||||
@@ -38,7 +38,7 @@
|
||||
<?php if (!has_capability('moodle/user:update',get_context_instance(CONTEXT_SYSTEM, SITEID))) { ?>
|
||||
<tr valign="top">
|
||||
<td><?php print_string("oldpassword") ?>:</td>
|
||||
<td><input type="password" name="password" size="25" value="<?php p($frm->password) ?>" alt="<?php print_string("password") ?>" />
|
||||
<td><input type="password" name="password" size="25" value="<?php p($frm->password) ?>" />
|
||||
<?php if (!empty($err->password)) { formerr($err->password); } ?>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -46,13 +46,13 @@
|
||||
|
||||
<tr valign="top">
|
||||
<td><?php print_string("newpassword") ?>:</td>
|
||||
<td><input type="password" name="newpassword1" size="25" value="<?php p($frm->newpassword1) ?>" alt="<?php print_string("newpassword") ?>" />
|
||||
<td><input type="password" name="newpassword1" size="25" value="<?php p($frm->newpassword1) ?>" />
|
||||
<?php if (!empty($err->newpassword1)) { formerr($err->newpassword1); } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td><?php print_string("newpassword") ?> (<?php print_string("again") ?>):</td>
|
||||
<td><input type="password" name="newpassword2" size="25" value="<?php p($frm->newpassword2) ?>" alt="<?php print_string("newpassword") ?> (<?php print_string("again") ?>)" />
|
||||
<td><input type="password" name="newpassword2" size="25" value="<?php p($frm->newpassword2) ?>" />
|
||||
<?php if (!empty($err->newpassword2)) { formerr($err->newpassword2); } ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user