1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Allow user to delete session key

This commit is contained in:
Jeremy Stretch
2017-03-14 14:01:06 -04:00
parent 4cb30f1ce4
commit 3dc15068b9
6 changed files with 48 additions and 5 deletions

View File

@@ -14,8 +14,10 @@ $(document).ready(function() {
// Retrieve a session key
$('#request_session_key').click(function() {
var private_key = $('#user_privkey').val();
var private_key_field = $('#user_privkey');
var private_key = private_key_field.val();
get_session_key(private_key);
private_key_field.val("");
});
// Retrieve a secret via the API