diff --git a/index.html b/index.html index 31cb3e2..267f26a 100644 --- a/index.html +++ b/index.html @@ -2433,6 +2433,13 @@ Sign In Sign Up + + Forgot Password? + { @@ -88,6 +89,20 @@ export function initializeSettings(scrobbler, player, api, ui) { }); } + if (resetPasswordBtn) { + resetPasswordBtn.addEventListener('click', async () => { + const email = emailInput.value; + if (!email) { + alert('Please enter your email address to reset your password.'); + return; + } + try { + await authManager.sendPasswordReset(email); + } catch { + } + }); + } + const lastfmConnectBtn = document.getElementById('lastfm-connect-btn'); const lastfmStatus = document.getElementById('lastfm-status'); const lastfmToggle = document.getElementById('lastfm-toggle');