()
| 13051 | addConsoleMessage('Authentication enabled - database encrypted', 'success'); |
| 13052 | } else { |
| 13053 | statusEl.className = 'p-3 rounded-lg text-sm bg-red-900/30 border border-red-700 text-red-300'; |
| 13054 | statusEl.textContent = result.error || 'Setup failed'; |
| 13055 | statusEl.classList.remove('hidden'); |
| 13056 | btn.disabled = false; |
| 13057 | btn.textContent = 'Enable Authentication'; |
| 13058 | } |
| 13059 | } catch (error) { |
| 13060 | statusEl.className = 'p-3 rounded-lg text-sm bg-red-900/30 border border-red-700 text-red-300'; |
| 13061 | statusEl.textContent = 'Setup failed: ' + (error.message || 'Unknown error'); |
| 13062 | statusEl.classList.remove('hidden'); |
| 13063 | btn.disabled = false; |
| 13064 | btn.textContent = 'Enable Authentication'; |
| 13065 | } |
| 13066 | } |
| 13067 | |
| 13068 | function copyRecoveryCodes() { |
| 13069 | if (window._tempRecoveryCodes) { |
nothing calls this directly
no test coverage detected