fix: clean stable client input pattern

This commit is contained in:
andrey271192
2026-06-11 19:33:06 +03:00
parent eac33b3cf6
commit e215cedbb3
2 changed files with 2 additions and 1 deletions

2
app.py
View File

@@ -1367,7 +1367,7 @@ def clients_page():
<h2>{tr("VPN-клиенты", "VPN Clients")}</h2>
<form method="post" class="form-row" style="margin-bottom:16px">
<input type="hidden" name="action" value="add">
<input type="text" name="name" placeholder="{tr('Имя нового клиента', 'New client name')}" pattern="[a-zA-Z0-9_-]+" required>
<input type="text" name="name" placeholder="{tr('Имя нового клиента', 'New client name')}" pattern="[A-Za-z0-9_\\-]+" required>
<button class="btn btn-primary" type="submit">{tr("Добавить", "Add")}</button>
{hlp("Создать нового VPN-клиента (роутер/устройство). Имя — латиница, цифры, _ и -. После создания выдай команду установки на роутер.", "Create a new VPN client (router/device). Name: letters, digits, _ and -. After creation, run the install command on the router.")}
</form>