Skip to content

Commit

Permalink
Take out all he notices in this form, it had a lot !!
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Feb 21, 2004
1 parent cd44fdc commit ceafd82
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions login/change_password_form.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,42 @@
<p><b><?php print_string("allfieldsrequired") ?></b></p>

<?php
if (empty($frm->username)) {
$frm->username = "";
}
if (empty($frm->password)) {
$frm->password = "";
}
if (empty($frm->newpassword1)) {
$frm->newpassword1 = "";
}
if (empty($frm->newpassword2)) {
$frm->newpassword2 = "";
}
?>
<form action="change_password.php" method="post" name="form" id="form">
<table cellpadding="10">
<tr valign="top">
<td><p><?php print_string("username") ?>:</p></td>
<td><input type="text" name="username" size="25" value="<?php p($frm->username) ?>" />
<?php formerr($err->username) ?>
<?php if (!empty($err->username)) { formerr($err->username); } ?>
</td>
</tr>
<tr valign="top">
<td><p><?php print_string("password") ?>:</p></td>
<td><input type="password" name="password" size="25" value="<?php p($frm->password) ?>" />
<?php formerr($err->password) ?>
<?php if (!empty($err->password)) { formerr($err->password); } ?>
</td>
</tr>
<tr valign="top">
<td><p><?php print_string("newpassword") ?>:</p></td>
<td><input type="password" name="newpassword1" size="25" value="<?php p($frm->newpassword1) ?>" />
<?php formerr($err->newpassword1) ?>
<?php if (!empty($err->newpassword1)) { formerr($err->newpassword1); } ?>
</td>
</tr>
<tr valign="top">
<td><p><?php print_string("newpassword") ?> (<?php print_string("again") ?>):</p></td>
<td><input type="password" name="newpassword2" size="25" value="<?php p($frm->newpassword2) ?>" />
<?php formerr($err->newpassword2) ?>
<?php if (!empty($err->newpassword2)) { formerr($err->newpassword2); } ?>
</td>
</tr>
<tr>
Expand Down

0 comments on commit ceafd82

Please sign in to comment.