summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2004-06-21 10:58:50 +0000
committerivan <ivan>2004-06-21 10:58:50 +0000
commit2449cfd0609ec82d85f4539dc454f94f14a31a41 (patch)
tree7a16dee33af3e2c0384d274cda75c9cd8f51a2b3
parenta9060f5bf7ee105eb2f3bb379feb4dd3e59ee27a (diff)
check password match on agent add'l package order
-rw-r--r--fs_selfservice/FS-SelfService/cgi/agent.cgi7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/agent.cgi b/fs_selfservice/FS-SelfService/cgi/agent.cgi
index 3508e82e3..a219fe771 100644
--- a/fs_selfservice/FS-SelfService/cgi/agent.cgi
+++ b/fs_selfservice/FS-SelfService/cgi/agent.cgi
@@ -208,6 +208,13 @@ sub view_customer {
sub process_order_pkg {
+ if ( $cgi->param('_password') ne $cgi->param('_password2') ) {
+ my $init_data = signup_info( 'session_id' => $session_id );
+ $error = $init_data->{msgcat}{passwords_dont_match}; #msgcat
+ $cgi->param('_password', '');
+ $cgi->param('_password2', '');
+ }
+
my $results = order_pkg (
'agent_session_id' => $session_id,
map { $_ => $cgi->param($_) }