Merge branch 'master' of github.com:EaterOfCode/zer.ooo

master
Corne Oppelaar 9 years ago
commit 10aa559703

@ -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).

@ -12,6 +12,7 @@ routes:
post: Register\Action
/logout: Logout
/ca: CA
/crl: CRL
/panel:
get: Panel
/certificates:

@ -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());
}
});

Loading…
Cancel
Save