forked from GithubBackups/tinyib
parent
586c0ae939
commit
d300d9b2f2
@ -1162,9 +1162,11 @@ EOF;
|
|||||||
fancyDie(__('This account may not be updated while TINYIB_MODPASS is set.'));
|
fancyDie(__('This account may not be updated while TINYIB_MODPASS is set.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_POST['password'])) {
|
if (isset($_POST['password']) && isset($_POST['confirm'])) {
|
||||||
if ($_POST['password'] == '') {
|
if ($_POST['password'] == '') {
|
||||||
fancyDie(__('A password is required.'));
|
fancyDie(__('A password is required.'));
|
||||||
|
} else if ($_POST['password'] != $_POST['confirm']) {
|
||||||
|
fancyDie(__('Passwords do not match.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$account['password'] = $_POST['password'];
|
$account['password'] = $_POST['password'];
|
||||||
|
@ -1112,8 +1112,11 @@ function manageChangePasswordForm() {
|
|||||||
<form id="tinyib" name="tinyib" method="post" action="?manage&changepassword">
|
<form id="tinyib" name="tinyib" method="post" action="?manage&changepassword">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>$txt_header</legend>
|
<legend>$txt_header</legend>
|
||||||
<input type="password" name="password" id="password" value="">
|
<table border="0">
|
||||||
<input type="submit" value="$txt_submit" class="managebutton">
|
<tr><td>New password</td><td><input type="password" name="password" id="password" value=""></td></tr>
|
||||||
|
<tr><td>Confirm</td><td><input type="password" name="confirm" id="confirm" value=""></td></tr>
|
||||||
|
<tr><td> </td><td><input type="submit" value="$txt_submit" class="managebutton"></td></tr>
|
||||||
|
</table>
|
||||||
<legend>
|
<legend>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form><br>
|
</form><br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user