forked from science-ation/science-ation
Add ability fo superuser to SEE anyones current password
This commit is contained in:
parent
6d189a907f
commit
81fafb609c
@ -207,23 +207,36 @@ case 'save':
|
||||
<?=i18n('Use the email address as the login username')?><br />
|
||||
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td colspan="2">
|
||||
<br />
|
||||
</td>
|
||||
</tr><tr>
|
||||
</tr>
|
||||
<tr><td colspan="2"><br /></td></tr>
|
||||
<tr>
|
||||
<td style="text-align: left" colspan="2"><b>Password</b><hr /></td>
|
||||
</tr><tr>
|
||||
</tr>
|
||||
<?
|
||||
if($_SESSION['superuser']=="yes") {
|
||||
?>
|
||||
<tr>
|
||||
<td><label for="pass1"><?=i18n('Current Password')?>:</label></td>
|
||||
<td><? echo account_get_password($a['id']); ?></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td><label for="pass1"><?=i18n('New Password')?>:</label></td>
|
||||
<td><input id="pass1" name="pass1" type="password" size="20" value=""></td>
|
||||
</tr><tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="pass2"><?=i18n('Confirm New Password')?>:</label></td>
|
||||
<td><input id="pass2" name="pass2" type="password" size="20" value=""></td>
|
||||
</tr><tr>
|
||||
<td></td><td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<div style="font-size: 0.75em;"><?=i18n('Passwords must be be between 6 and 32 characters, and may NOT contain any quote or a backslash.')?></div>
|
||||
</td>
|
||||
</tr></table>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
<input type="submit" value="<?=i18n("Save")?>" />
|
||||
|
Loading…
Reference in New Issue
Block a user