diff --git a/imgboard.php b/imgboard.php index 5148429..5fae100 100644 --- a/imgboard.php +++ b/imgboard.php @@ -1162,9 +1162,11 @@ EOF; 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'] == '') { fancyDie(__('A password is required.')); + } else if ($_POST['password'] != $_POST['confirm']) { + fancyDie(__('Passwords do not match.')); } $account['password'] = $_POST['password']; diff --git a/inc/html.php b/inc/html.php index aec32f6..b4fd77b 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1112,8 +1112,11 @@ function manageChangePasswordForm() {
$txt_header - - + + + + +
New password
Confirm