Revision 8258
Added by Jing Tao over 11 years ago
ldapweb.cgi | ||
---|---|---|
439 | 439 |
# |
440 | 440 |
sub handleRegister { |
441 | 441 |
|
442 |
print "Content-type: text/html\n\n"; |
|
442 |
#print "Content-type: text/html\n\n";
|
|
443 | 443 |
if ($query->param('o') =~ "LTER") { |
444 |
print "Content-type: text/html\n\n"; |
|
444 | 445 |
fullTemplate( ['registerLter'] ); |
445 | 446 |
exit(0); |
446 | 447 |
} |
... | ... | |
470 | 471 |
#exit(); |
471 | 472 |
} |
472 | 473 |
else { |
474 |
print "Content-type: text/html\n\n"; |
|
473 | 475 |
my $errorMessage = "The verification code is wrong. Please input again."; |
474 | 476 |
fullTemplate(['register'], { stage => "register", |
475 | 477 |
allParams => $allParams, |
... | ... | |
482 | 484 |
my @requiredParams = ( 'givenName', 'sn', 'o', 'mail', |
483 | 485 |
'uid', 'userPassword', 'userPassword2'); |
484 | 486 |
if (! paramsAreValid(@requiredParams)) { |
487 |
print "Content-type: text/html\n\n"; |
|
485 | 488 |
my $errorMessage = "Required information is missing. " . |
486 | 489 |
"Please fill in all required fields and resubmit the form."; |
487 | 490 |
fullTemplate(['register'], { stage => "register", |
... | ... | |
490 | 493 |
exit(); |
491 | 494 |
} else { |
492 | 495 |
if ($query->param('userPassword') ne $query->param('userPassword2')) { |
496 |
print "Content-type: text/html\n\n"; |
|
493 | 497 |
my $errorMessage = "The passwords do not match. Try again."; |
494 | 498 |
fullTemplate( ['registerFailed', 'register'], { stage => "register", |
495 | 499 |
allParams => $allParams, |
... | ... | |
553 | 557 |
'userPassword2' => $query->param('userPassword2'), |
554 | 558 |
'title' => $query->param('title'), |
555 | 559 |
'telephoneNumber' => $query->param('telephoneNumber') }; |
556 |
print "Content-type: text/html\n\n"; |
|
560 |
#print "Content-type: text/html\n\n";
|
|
557 | 561 |
createTemporaryAccount($allParams); |
558 | 562 |
exit(); |
559 | 563 |
} |
Also available in: Unified diff
Comment out some extral "contet type".