summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2014-01-19 19:51:28 +0100
committerINOPIAE <inopiae@cacert.org>2014-01-19 19:51:28 +0100
commitfb300edf8eb5842b4eae25fed52e05dcc59436fd (patch)
tree29a973b6e48c0f36c7f5d579f776248cc38bdce4
parent99a685470c660208f2006ad7b10edd79ce3f8465 (diff)
downloadcacert-devel-fb300edf8eb5842b4eae25fed52e05dcc59436fd.tar.gz
cacert-devel-fb300edf8eb5842b4eae25fed52e05dcc59436fd.tar.xz
cacert-devel-fb300edf8eb5842b4eae25fed52e05dcc59436fd.zip
bug 1138: added the ticket no handling to password reset
-rw-r--r--includes/account.php2
-rw-r--r--pages/account/44.php8
2 files changed, 8 insertions, 2 deletions
diff --git a/includes/account.php b/includes/account.php
index 6020904..a7a69c2 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -2701,7 +2701,7 @@
}
//check if ticket number was entered
- if ( $id== 43 or $oldid==43) {
+ if ( $id == 43 or $oldid == 43 or $id == 44 or $oldid == 44) {
$ticketvalidation = FALSE;
if ($ticketno != "" ) {
$ticketno = mysql_real_escape_string(trim($_REQUEST['ticketno']));
diff --git a/pages/account/44.php b/pages/account/44.php
index fd34612..9e4e194 100644
--- a/pages/account/44.php
+++ b/pages/account/44.php
@@ -15,7 +15,12 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ ?>
-<? if(array_key_exists('error',$_SESSION['_config']) && $_SESSION['_config']['error'] != "") { ?><div color="orange">ERROR: <?=$_SESSION['_config']['error']?></div><? unset($_SESSION['_config']['error']); } ?>
+<? if(array_key_exists('error',$_SESSION['_config']) && $_SESSION['_config']['error'] != "") { ?><div color="orange">ERROR: <?=$_SESSION['_config']['error']?></div><? unset($_SESSION['_config']['error']); }
+
+$ticketno = ""; if(array_key_exists('ticketno', $_SESSION)) $ticketno = $_SESSION['ticketno'];
+
+?>
+
<form method="post" action="account.php">
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
<tr>
@@ -35,4 +40,5 @@
</table>
<input type="hidden" name="userid" value="<?=intval($_REQUEST['userid'])?>">
<input type="hidden" name="oldid" value="<?=$id?>">
+<input type="hidden" name="ticketno" value="<?=$ticketno?>"/>
</form>