From 00a96a93862c080164d169fa2bf6f61dd3b46d07 Mon Sep 17 00:00:00 2001 From: fenn-cs Date: Fri, 15 Mar 2024 11:46:19 +0100 Subject: [PATCH] WIP: Limit email input on auth pages to 255 chars Excessively long emails reported to make server unresponsive. NOTE : Would could consider adding a configuration for sysadmins to bypass this setting on their instance if they want. Resolves: https://github.com/nextcloud-gmbh/h1/issues/613 Signed-off-by: fenn-cs --- core/src/components/login/LoginForm.vue | 1 + core/src/components/login/ResetPassword.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/core/src/components/login/LoginForm.vue b/core/src/components/login/LoginForm.vue index 9844df6239dfa..0ccf3ec3a82c7 100644 --- a/core/src/components/login/LoginForm.vue +++ b/core/src/components/login/LoginForm.vue @@ -62,6 +62,7 @@ ref="user" :label="loginText" name="user" + :maxlength="255" :value.sync="user" :class="{shake: invalidPassword}" autocapitalize="none" diff --git a/core/src/components/login/ResetPassword.vue b/core/src/components/login/ResetPassword.vue index 0490bd84cf5d8..bc805e92ca2d9 100644 --- a/core/src/components/login/ResetPassword.vue +++ b/core/src/components/login/ResetPassword.vue @@ -25,6 +25,7 @@