fix: askPassword aceita config.dynamic_password
Build Fechamento de Caixa / build (macos-14, app) (push) Has been cancelled
Build Fechamento de Caixa / build (ubuntu-22.04, deb) (push) Has been cancelled
Build Fechamento de Caixa / build (windows-2022, msi) (push) Has been cancelled

This commit is contained in:
root
2026-07-02 19:38:33 +00:00
parent b1585af3f9
commit 9639048bf7
+1 -1
View File
@@ -2694,7 +2694,7 @@ function askPassword() {
inp.addEventListener('keydown', e => { if (e.key === 'Enter') document.getElementById('pw-ok-btn').click(); });
document.getElementById('pw-ok-btn').addEventListener('click', () => {
const val = document.getElementById('pw-input').value;
if (val === fixedPw || val === dynPw) {
if (val === fixedPw || val === dynPw || val === config.dynamic_password) {
document.getElementById('pw-modal').remove();
resolve(true);
} else {