From 3e01b5f3531751ada34b896b9450461ca8a8a090 Mon Sep 17 00:00:00 2001 From: Corne Oppelaar Date: Wed, 15 Jun 2016 12:57:38 +0200 Subject: [PATCH 1/4] reset interface before opening revoke modal and remove certificate row afterwards --- public/js/panel.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/public/js/panel.js b/public/js/panel.js index d6ea4af..9a8cc31 100644 --- a/public/js/panel.js +++ b/public/js/panel.js @@ -4,23 +4,26 @@ $(function(){ var selected = false; $('.revoke').click(function () { - selected = $(this).data('name'); + selected = $(this); $('.revoke-modal').modal('show'); + error.hide(); }); $('.revoke-confirm').click(function () { var selectedSnapshot = selected; + error.hide(); $.post('/panel/certificates/revoke', { - name: selectedSnapshot, + name: selectedSnapshot.data('name'), password: $('.revoke-password').val() }, function(data) { if (data.success) { - $('#certificates').after(success.text("Successfully revoked '" + selectedSnapshot + "'")); + $('#certificates').after(success.text("Successfully revoked '" + selectedSnapshot.data('name') + "'").delay(3000).hide(0)); $('.revoke-modal').modal('hide'); + $(selectedSnapshot).parents('tr').first().remove(); } else { - $('#revoke-put-error-after-me').after(error.text(data.error)); + $('#revoke-put-error-after-me').after(error.text(data.error).show()); } }); From 609f2702155945cdd65b3f2fab649d03e3e9acce Mon Sep 17 00:00:00 2001 From: Nienke Dekker Date: Sat, 18 Jun 2016 15:01:33 +0200 Subject: [PATCH 2/4] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a3da6a8..fccfbe8 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,12 @@ # Zer.ooo -The open-source OpenVPN manager. +The open-source OpenVPN manager, or VaaS: VPN as a Service. ## What is it? -Zer.ooo is made to simplify the managing of your OpenVPN servers and certificates. automating the CA and server provisioning. +Zer.ooo aims to simplify the management of your OpenVPN servers and certificates. It allows you to easily create new certificates and it automates a large part of the CA and the server provisioning process. +## How do I use it? +If you have an invite code, feel free to register at zer.ooo. You can also set up zer.ooo on your own server (a how-to should follow shortly). From 697de4688fee29b43d430c8f37b38cdf1d120038 Mon Sep 17 00:00:00 2001 From: Nienke Dekker Date: Sat, 18 Jun 2016 15:02:13 +0200 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fccfbe8..9458d88 100644 --- a/README.md +++ b/README.md @@ -8,5 +8,5 @@ Zer.ooo aims to simplify the management of your OpenVPN servers and certificates ## How do I use it? -If you have an invite code, feel free to register at zer.ooo. You can also set up zer.ooo on your own server (a how-to should follow shortly). +If you have an invite code, feel free to register at [zer.ooo](https://zer.ooo). You can also set up zer.ooo on your own server (a how-to should follow shortly). From f9e98b96b9b17aae50977441d155a5d611915017 Mon Sep 17 00:00:00 2001 From: Dennis de Greef Date: Sat, 18 Jun 2016 19:11:47 +0200 Subject: [PATCH 4/4] Add route for CRL --- config/routes.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/routes.yml b/config/routes.yml index 683ef54..8338904 100644 --- a/config/routes.yml +++ b/config/routes.yml @@ -12,6 +12,7 @@ routes: post: Register\Action /logout: Logout /ca: CA + /crl: CRL /panel: get: Panel /certificates: