base username from CSR on hidden input instead of spans randomly in the html

master
Corne Oppelaar 9 years ago
parent 7ac2c7a3e2
commit 9553d29cfc

@ -14,7 +14,7 @@ $(function () {
return; return;
} }
var user = $('.user').text(); var user = $('#user-input').val();
var keys = forge.pki.rsa.generateKeyPair(1024); var keys = forge.pki.rsa.generateKeyPair(1024);
var csr = forge.pki.createCertificationRequest(); var csr = forge.pki.createCertificationRequest();

@ -50,6 +50,7 @@
</div> </div>
</div> </div>
</div> </div>
<input type="hidden" value="{{ user.getUsername() }}" id="user-input">
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save