diff --git a/src/static/js/app.js b/src/static/js/app.js
index 6425322..63a9338 100644
--- a/src/static/js/app.js
+++ b/src/static/js/app.js
@@ -40,6 +40,7 @@ const App = (() => {
`;
@@ -70,9 +72,7 @@ const App = (() => {
};
document.getElementById('btn-login').onclick = doLogin;
- document.getElementById('login-password').addEventListener('keydown', e => {
- if (e.key === 'Enter') doLogin();
- });
+ document.getElementById('login-form').addEventListener('submit', doLogin);
}
function renderShell() {