summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/share/js/login/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/share/js/login/main.js b/web/share/js/login/main.js
index 378ece6c..f949b8cf 100644
--- a/web/share/js/login/main.js
+++ b/web/share/js/login/main.js
@@ -6,7 +6,7 @@ function main() {
tools.setOnClick($("login-button"), __login);
$("user-input").onkeyup = $("passwd-input").onkeyup = function(event) {
- if (event.code == "Enter") {
+ if (event.code === "Enter") {
event.preventDefault();
__login();
}