fix: askPassword aceita config.dynamic_password
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user