diff --git a/README.md b/README.md index a3da6a8..9458d88 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](https://zer.ooo). You can also set up zer.ooo on your own server (a how-to should follow shortly). 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: 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()); } });