diff --git a/packages/studiocms_auth/src/routes/login.astro b/packages/studiocms_auth/src/routes/login.astro index 28b189a665..ac75f93483 100644 --- a/packages/studiocms_auth/src/routes/login.astro +++ b/packages/studiocms_auth/src/routes/login.astro @@ -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')); \ No newline at end of file