changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[ljcom] r9331: Initial changeset for Pramana integratio...

Committer: ldoolan
Initial changeset for Pramana integration
U   trunk/htdocs/create.bml
Modified: trunk/htdocs/create.bml
===================================================================
--- trunk/htdocs/create.bml	2010-08-12 10:46:14 UTC (rev 9330)
+++ trunk/htdocs/create.bml	2010-08-12 10:46:15 UTC (rev 9331)
@@ -17,7 +17,8 @@
     if ($GET{user}) {
         push @getargs, "user=$GET{user}";
     }
-
+    $headextra .= LJ::Widget::CreateAccount->pramanaHeadTagContent();
+	
     my $getextra = @getargs ? '?' . join('&', @getargs) : '';
 
     if ($LJ::USE_SSL && !$LJ::IS_SSL && $GET{ssl} ne "no") {
@@ -26,7 +27,10 @@
 
     my %from_post;
     if (LJ::did_post()) {
-        LJ::Widget->use_specific_form_fields( post => \%POST, widget => "CreateAccount", fields => [ qw( recaptcha_response_field recaptcha_challenge_field ) ] );
+    	my @creatAcctFormFields= qw(recaptcha_response_field recaptcha_challenge_field);
+	push(@creatAcctFormFields, qw(hpmxData lj_pramana_req_id)) if LJ::Widget::CreateAccount->pramanaDetectionEnabled(); 
+        
+        LJ::Widget->use_specific_form_fields( post => \%POST, widget => "CreateAccount", fields => \@creatAcctFormFields );
         %from_post = LJ::Widget->handle_post(\%POST, ( "CreateAccount", { get => \%GET, getextra => $getextra }));
     }
 

Tags: bml, changelog_bot, ljcom
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments