|
@@ 1733-1738 (lines=6) @@
|
| 1730 |
|
die(); |
| 1731 |
|
} |
| 1732 |
|
|
| 1733 |
|
if ((!isset($_POST['newpassword'])) || $_POST['newpassword'] == "") { |
| 1734 |
|
//Throw an error if new password is not specified. |
| 1735 |
|
BootstrapSkin::displayAlertBox("You did not enter your new password.", "alert-error", "Error", true, false); |
| 1736 |
|
BootstrapSkin::displayInternalFooter(); |
| 1737 |
|
die(); |
| 1738 |
|
} |
| 1739 |
|
|
| 1740 |
|
if ($_POST['newpassword'] != $_POST['newpasswordconfirm']) { |
| 1741 |
|
//Throw an error if new password does not match what is in the confirmation box. |
|
@@ 1740-1745 (lines=6) @@
|
| 1737 |
|
die(); |
| 1738 |
|
} |
| 1739 |
|
|
| 1740 |
|
if ($_POST['newpassword'] != $_POST['newpasswordconfirm']) { |
| 1741 |
|
//Throw an error if new password does not match what is in the confirmation box. |
| 1742 |
|
BootstrapSkin::displayAlertBox("The 2 new passwords you entered do not match.", "alert-error", "Error", true, false); |
| 1743 |
|
BootstrapSkin::displayInternalFooter(); |
| 1744 |
|
die(); |
| 1745 |
|
} |
| 1746 |
|
|
| 1747 |
|
$user = User::getCurrent(); |
| 1748 |
|
|