Reg
Watch
Features
Pricing
Login
Login
Request Access
Reg
Watch
×
Features
Pricing
Login
Request Access
Reg
Watch
{ if (r.ok) { // Auto-login after registration const loginResp = await fetch('/api/auth/login', { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({ email: $refs.email.value, password: password }) }); if (loginResp.ok) { window.location.href = '/reports'; } else { window.location.href = '/login'; } } else { loading = false; const data = await r.json(); const el = document.getElementById('register-error'); el.textContent = data.detail || 'Registration failed'; el.classList.add('show'); } }).catch(() => { loading = false; const el = document.getElementById('register-error'); el.textContent = 'Unable to connect. Please try again.'; el.classList.add('show'); }); ">
Display name
Email
Password
Confirm password
Create Account
Creating account...