fix: reset Turnstile on login and registration error handling

This commit is contained in:
2026-01-08 15:38:50 -05:00
parent 54a4fe1a08
commit 5a630d2a71
3 changed files with 7 additions and 1 deletions
@@ -73,6 +73,9 @@
const messages = Object.values(resData.errors).flat();
error = messages.join('\n');
} else {
if (window.turnstile) {
window.turnstile.reset();
}
if (resData.message === 'TOTP code is required.') {
totpEnabled = true;
}