From 9553d29cfc5f1f1aebc7c6fc9cc2ebf518a3d96a Mon Sep 17 00:00:00 2001 From: Corne Oppelaar Date: Wed, 15 Jun 2016 11:21:29 +0200 Subject: [PATCH] base username from CSR on hidden input instead of spans randomly in the html --- public/js/new_certificate.js | 2 +- views/panel/certificates/new.html.twig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/js/new_certificate.js b/public/js/new_certificate.js index 548e635..ace778b 100644 --- a/public/js/new_certificate.js +++ b/public/js/new_certificate.js @@ -14,7 +14,7 @@ $(function () { return; } - var user = $('.user').text(); + var user = $('#user-input').val(); var keys = forge.pki.rsa.generateKeyPair(1024); var csr = forge.pki.createCertificationRequest(); diff --git a/views/panel/certificates/new.html.twig b/views/panel/certificates/new.html.twig index b1e2243..275b0ff 100644 --- a/views/panel/certificates/new.html.twig +++ b/views/panel/certificates/new.html.twig @@ -50,6 +50,7 @@ +