Skip to content

Commit

Permalink
WIP: Limit email input on auth pages to 255 chars
Browse files Browse the repository at this point in the history
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: nextcloud-gmbh/h1#613

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
  • Loading branch information
Fenn-CS committed Mar 15, 2024
1 parent df1cd1b commit 00a96a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/src/components/login/LoginForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
ref="user"
:label="loginText"
name="user"
:maxlength="255"
:value.sync="user"
:class="{shake: invalidPassword}"
autocapitalize="none"
Expand Down
1 change: 1 addition & 0 deletions core/src/components/login/ResetPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<NcTextField id="user"
:value.sync="user"
name="user"
:maxlength="255"
autocapitalize="off"
:label="t('core', 'Login or email')"
required
Expand Down

0 comments on commit 00a96a9

Please sign in to comment.