mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-21 20:12:33 +03:00
Renames client_id to client_email_id for email
This commit is contained in:
parent
12c5e71e62
commit
05373ae5ff
1 changed files with 5 additions and 5 deletions
|
@ -41,10 +41,10 @@ Wireguard Clients
|
|||
</div>
|
||||
<form name="frm_email_client" id="frm_email_client">
|
||||
<div class="modal-body">
|
||||
<input type="hidden" id="_client_id" name="_client_id">
|
||||
<input type="hidden" id="_client_email_id" name="_client_email_id">
|
||||
<div class="form-group">
|
||||
<label for="_client_email" class="control-label">Email</label>
|
||||
<input type="text" class="form-control" id="_client_email" name="client_email">
|
||||
<label for="_client_email_email" class="control-label">Email</label>
|
||||
<input type="text" class="form-control" id="_client_email_email" name="client_email_email">
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer justify-content-between">
|
||||
|
@ -340,8 +340,8 @@ Wireguard Clients
|
|||
|
||||
// submitEmailClient function for sending an email to the client with the configuration
|
||||
function submitEmailClient() {
|
||||
const client_id = $("#_client_id").val();
|
||||
const email = $("#_client_email").val();
|
||||
const client_id = $("#_client_email_id").val();
|
||||
const email = $("#_client_email_email").val();
|
||||
const data = {"id": client_id, "email": email};
|
||||
$.ajax({
|
||||
cache: false,
|
||||
|
|
Loading…
Add table
Reference in a new issue