Skip to content

Commit

Permalink
Refactor form submission in login route to use 'login' instead of 're…
Browse files Browse the repository at this point in the history
…gister'
  • Loading branch information
Adammatthiesen committed Dec 13, 2024
1 parent a3ce971 commit 112e7fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/studiocms_auth/src/routes/login.astro
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ if (usernameAndPassword && SHOW_OAUTH) {
import { formListener } from '../scripts/formListener';
const loginForm = document.getElementById('login-form') as HTMLFormElement;

loginForm.addEventListener('submit', async (event) => await formListener(event, loginForm, 'register'));
loginForm.addEventListener('submit', async (event) => await formListener(event, loginForm, 'login'));
</script>

0 comments on commit 112e7fe

Please sign in to comment.