fix: очистка поля пароля при редактировании пользователя

This commit is contained in:
mirivlad 2026-04-13 23:49:09 +08:00
parent 90e220902d
commit 7c597457ce
1 changed files with 2 additions and 0 deletions

View File

@ -163,6 +163,8 @@ function openEditModal(id, username, email, role, telegramChatId, emailForAlerts
document.getElementById('username').value = username;
document.getElementById('email').value = email === '' ? '' : email;
document.getElementById('password').required = false;
document.getElementById('password').value = '';
document.getElementById('password').autocomplete = 'new-password';
document.getElementById('password_hint').style.display = 'inline';
document.getElementById('role').value = role;
document.getElementById('telegram_chat_id').value = telegramChatId === '' ? '' : telegramChatId;