$smarty->assign("error", "There was an error changing your password."); } else { $user->password = $passwordHash; $user->Save(); $smarty->assign("message", "Your password has been changed"); } } } } } else { $smarty->assign("error", "Your current password does not match"); } } } else { if ($_REQUEST['action'] == "deleteAllMessages") { $userController->deleteAllMessagesForUser($currentUID); $smarty->assign("message", "All messages have been deleted."); } else { if ($_REQUEST['action'] == "deleteMonsterMessages") { $userController->deleteMonsterMessagesForUser($currentUID); $smarty->assign("message", "All messages have been deleted."); } } } } if ($_REQUEST['action'] == "expiredPassword") { $smarty->assign("message", "Your password has expired. Please change it."); } } $smarty->assign("user", $user); $messageAttack = array();