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

This commit is contained in:
Corne Oppelaar 2016-06-15 11:21:29 +02:00
parent 7ac2c7a3e2
commit 9553d29cfc
2 changed files with 2 additions and 1 deletions

View file

@ -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();

View file

@ -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>