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

Reworked secrets API to allow optional decryption by POSTing a private key

This commit is contained in:
Jeremy Stretch
2016-03-22 12:17:49 -04:00
parent b78caba1ca
commit 6ce2cf9db0
4 changed files with 86 additions and 43 deletions

View File

@@ -71,7 +71,7 @@ $(document).ready(function() {
function unlock_secret(secret_id, private_key) {
var csrf_token = $('input[name=csrfmiddlewaretoken]').val();
$.ajax({
url: '/api/secrets/secrets/' + secret_id + '/decrypt/',
url: '/api/secrets/secrets/' + secret_id + '/',
type: 'POST',
data: {
private_key: private_key