base username from CSR on hidden input instead of spans randomly in the html
This commit is contained in:
parent
7ac2c7a3e2
commit
9553d29cfc
2 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue