fix: preserva email no login quando senha incorreta
- Passa email como parametro na URL de erro - Preenche campo automaticamente ao recarregar - Foca no campo senha quando email ja preenchido Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -168,7 +168,13 @@
|
||||
el.textContent = 'E-mail ou senha incorretos.';
|
||||
el.style.display = 'block';
|
||||
}
|
||||
document.getElementById('email').focus();
|
||||
const emailParam = params.get('email');
|
||||
if (emailParam) {
|
||||
document.getElementById('email').value = emailParam;
|
||||
document.getElementById('senha').focus();
|
||||
} else {
|
||||
document.getElementById('email').focus();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user