From 70d331f416102c0bcc63bcd26c301d12f60275c6 Mon Sep 17 00:00:00 2001
From: "renater.salaun" <renater.salaun@047e039d-479c-447e-8a29-aa6bf4a09bab>
Date: Wed, 15 Oct 2014 09:41:59 +0000
Subject: [PATCH] Fixed wrong JQuery selector to select email address. Reported
 by Thomas Baerecke

git-svn-id: https://svn.geant.net/GEANT/edugain_testidp_account_manager/trunk@29 047e039d-479c-447e-8a29-aa6bf4a09bab
---
 templates/web/account_wizard.tt2.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/web/account_wizard.tt2.html b/templates/web/account_wizard.tt2.html
index a57cab6..d50843b 100644
--- a/templates/web/account_wizard.tt2.html
+++ b/templates/web/account_wizard.tt2.html
@@ -35,7 +35,7 @@ jQuery(document).ready(function($){
                     title: "Validate challenge",
                     contentMode: "async",
                     contentUrl: "https://dev-edugain.renater.fr/accountmanager?action=generate_token&style=nobanner&sp_entityid="+
-                        encodeURIComponent($('#sp_entityid').val())+"&email_address="+encodeURIComponent($('#email_address').val())
+                        encodeURIComponent($('#sp_entityid').val())+"&email_address="+encodeURIComponent($("input:checked[name='email_address']").val())
                 });
             }
 
-- 
GitLab