| @@ -7,9 +7,8 @@ | ||
| 7 | 7 | * hide-settings checkbox logic, export button) with the lock-section handler. |
| 8 | 8 | * |
| 9 | 9 | * Localized data object: metasyncConnectData |
| 10 | 10 | * - optionKey (string) — plugin option key for form field names |
| 11 | - * - storedPassword (string) — current stored settings password | |
| 12 | 11 | * - adminPostUrl (string) — admin-post.php URL |
| 13 | 12 | * - exportNonce (string) — nonce for metasync_export_whitelabel action |
| 14 | 13 | * - ajaxUrl (string) — admin-ajax.php URL |
| 15 | 14 | * - logoutNonceField (string) — full HTML nonce input for whitelabel logout |
| @@ -126,10 +125,8 @@ | ||
| 126 | 125 | }, 0); |
| 127 | 126 | }); |
| 128 | 127 | |
| 129 | 128 | // Prevent clearing password when Hide Settings is enabled |
| 130 | - var storedPassword = metasyncConnectData.storedPassword; | |
| 131 | - | |
| 132 | 129 | passwordField.on('keydown', function(e) { |
| 133 | 130 | var currentValue = $(this).val(); |
| 134 | 131 | |
| 135 | 132 | // If Hide Settings is checked and user tries to clear password (backspace/delete on empty or last char) |