mirror of
https://github.com/swissmakers/wireguard-manager.git
synced 2026-04-05 10:47:05 +02:00
Validate AllowedIPs from user input
This commit is contained in:
@@ -246,6 +246,10 @@
|
||||
$('#modal_new_client').modal('hide');
|
||||
toastr.success('Created new client successfully');
|
||||
// TODO: trigger reloading the dashboard
|
||||
},
|
||||
error: function(jqXHR, exception) {
|
||||
var responseJson = jQuery.parseJSON(jqXHR.responseText);
|
||||
toastr.error(responseJson['message']);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user